/*
MySQL Backup
Database: ry-vue
Backup Time: 2025-05-04 11:48:59
*/

SET FOREIGN_KEY_CHECKS=0;
DROP TABLE IF EXISTS `ry-vue`.`department`;
DROP TABLE IF EXISTS `ry-vue`.`employee`;
DROP TABLE IF EXISTS `ry-vue`.`enterprise`;
DROP TABLE IF EXISTS `ry-vue`.`enterprise_license`;
DROP TABLE IF EXISTS `ry-vue`.`equipment_inspection`;
DROP TABLE IF EXISTS `ry-vue`.`gen_table`;
DROP TABLE IF EXISTS `ry-vue`.`gen_table_column`;
DROP TABLE IF EXISTS `ry-vue`.`license_reminder`;
DROP TABLE IF EXISTS `ry-vue`.`qrtz_blob_triggers`;
DROP TABLE IF EXISTS `ry-vue`.`qrtz_calendars`;
DROP TABLE IF EXISTS `ry-vue`.`qrtz_cron_triggers`;
DROP TABLE IF EXISTS `ry-vue`.`qrtz_fired_triggers`;
DROP TABLE IF EXISTS `ry-vue`.`qrtz_job_details`;
DROP TABLE IF EXISTS `ry-vue`.`qrtz_locks`;
DROP TABLE IF EXISTS `ry-vue`.`qrtz_paused_trigger_grps`;
DROP TABLE IF EXISTS `ry-vue`.`qrtz_scheduler_state`;
DROP TABLE IF EXISTS `ry-vue`.`qrtz_simple_triggers`;
DROP TABLE IF EXISTS `ry-vue`.`qrtz_simprop_triggers`;
DROP TABLE IF EXISTS `ry-vue`.`qrtz_triggers`;
DROP TABLE IF EXISTS `ry-vue`.`special_equipment`;
DROP TABLE IF EXISTS `ry-vue`.`sys_config`;
DROP TABLE IF EXISTS `ry-vue`.`sys_dept`;
DROP TABLE IF EXISTS `ry-vue`.`sys_dict_data`;
DROP TABLE IF EXISTS `ry-vue`.`sys_dict_type`;
DROP TABLE IF EXISTS `ry-vue`.`sys_job`;
DROP TABLE IF EXISTS `ry-vue`.`sys_job_log`;
DROP TABLE IF EXISTS `ry-vue`.`sys_logininfor`;
DROP TABLE IF EXISTS `ry-vue`.`sys_menu`;
DROP TABLE IF EXISTS `ry-vue`.`sys_notice`;
DROP TABLE IF EXISTS `ry-vue`.`sys_oper_log`;
DROP TABLE IF EXISTS `ry-vue`.`sys_post`;
DROP TABLE IF EXISTS `ry-vue`.`sys_role`;
DROP TABLE IF EXISTS `ry-vue`.`sys_role_dept`;
DROP TABLE IF EXISTS `ry-vue`.`sys_role_menu`;
DROP TABLE IF EXISTS `ry-vue`.`sys_user`;
DROP TABLE IF EXISTS `ry-vue`.`sys_user_post`;
DROP TABLE IF EXISTS `ry-vue`.`sys_user_role`;
DROP TABLE IF EXISTS `ry-vue`.`third_party_person`;
DROP EVENT IF EXISTS `ry-vue`.`auto_generate_license_reminder`;
CREATE TABLE `department` (
  `id` int NOT NULL AUTO_INCREMENT COMMENT '部门唯一ID（自增主键）',
  `enterprise_id` int NOT NULL COMMENT '所属企业ID（外键指向enterprise.id）',
  `name` varchar(50) NOT NULL COMMENT '部门名称（同一企业下不可重复）',
  `manager_id` int DEFAULT NULL COMMENT '部门负责人ID（占位，后续通过ALTER添加外键）',
  `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '部门创建时间',
  PRIMARY KEY (`id`),
  UNIQUE KEY `uk_department_enterprise_name` (`enterprise_id`,`name`),
  KEY `fk_department_manager` (`manager_id`),
  CONSTRAINT `department_ibfk_1` FOREIGN KEY (`enterprise_id`) REFERENCES `enterprise` (`id`),
  CONSTRAINT `fk_department_manager` FOREIGN KEY (`manager_id`) REFERENCES `employee` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='企业部门信息表';
CREATE TABLE `employee` (
  `id` int NOT NULL AUTO_INCREMENT COMMENT '员工唯一ID（自增主键）',
  `enterprise_id` int NOT NULL COMMENT '所属企业ID（外键指向enterprise.id）',
  `name` varchar(50) NOT NULL COMMENT '员工姓名',
  `role` varchar(50) NOT NULL COMMENT '岗位角色',
  `status` varchar(20) NOT NULL COMMENT '在职状态',
  `join_date` date NOT NULL COMMENT '入职日期',
  `department_id` int NOT NULL COMMENT '所属部门ID（外键指向department.id）',
  PRIMARY KEY (`id`),
  KEY `enterprise_id` (`enterprise_id`),
  KEY `department_id` (`department_id`),
  CONSTRAINT `employee_ibfk_1` FOREIGN KEY (`enterprise_id`) REFERENCES `enterprise` (`id`),
  CONSTRAINT `employee_ibfk_2` FOREIGN KEY (`department_id`) REFERENCES `department` (`id`),
  CONSTRAINT `employee_chk_1` CHECK ((`role` in (_utf8mb4'主要负责人',_utf8mb4'分管安全负责人',_utf8mb4'安全工程师',_utf8mb4'特种作业人员'))),
  CONSTRAINT `employee_chk_2` CHECK ((`status` in (_utf8mb4'在职',_utf8mb4'离职',_utf8mb4'休假')))
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='企业员工信息表';
CREATE TABLE `enterprise` (
  `id` int NOT NULL AUTO_INCREMENT COMMENT '企业唯一ID（自增主键）',
  `name` varchar(100) NOT NULL COMMENT '企业全称（唯一约束）',
  `address` varchar(200) NOT NULL COMMENT '企业注册地址（省市区+详细地址）',
  `legal_person` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '法人姓名',
  `phone_number` varchar(20) DEFAULT NULL COMMENT '电话',
  `email` varchar(100) DEFAULT NULL COMMENT '企业官方邮箱（需符合RFC5322标准格式）',
  `official_website` varchar(255) DEFAULT NULL COMMENT '企业官网地址（需包含协议头）',
  `establish_date` date NOT NULL COMMENT '企业成立日期（YYYY-MM-DD格式）',
  `unified_social_code` char(18) NOT NULL COMMENT '统一社会信用代码（18位数字/字母组合，唯一标识企业）',
  `status` varchar(20) DEFAULT '正常运营' COMMENT '企业运营状态（正常运营/停业整顿/注销）',
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`),
  UNIQUE KEY `unified_social_code` (`unified_social_code`),
  KEY `idx_enterprise_name` (`name`),
  CONSTRAINT `chk_email_format` CHECK (regexp_like(`email`,_utf8mb4'^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$')),
  CONSTRAINT `chk_enterprise_website` CHECK (((`official_website` is null) or regexp_like(`official_website`,_utf8mb4'^https?://[a-zA-Z0-9-]+(\\.[a-zA-Z]{2,})+([/?].*)?$'))),
  CONSTRAINT `chk_status` CHECK ((`status` in (_utf8mb4'正常运营',_utf8mb4'停业整顿',_utf8mb4'注销'))),
  CONSTRAINT `chk_unified_code_length` CHECK ((length(`unified_social_code`) = 18))
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='企业核心信息表';
CREATE TABLE `enterprise_license` (
  `id` int NOT NULL AUTO_INCREMENT COMMENT '证照记录ID（自增主键）',
  `enterprise_id` int NOT NULL COMMENT '关联企业ID（外键指向enterprise.id）',
  `license_type` varchar(50) NOT NULL COMMENT '证照类型',
  `license_number` varchar(100) NOT NULL COMMENT '证照编号（发证机关颁发的唯一编号）',
  `issue_date` date NOT NULL COMMENT '证照颁发日期',
  `expire_date` date NOT NULL COMMENT '证照失效日期',
  `attachment_path` varchar(255) DEFAULT NULL COMMENT '电子版证照文件存储路径（OSS/MinIO地址）',
  `status` varchar(20) DEFAULT '有效' COMMENT '证照状态',
  PRIMARY KEY (`id`),
  UNIQUE KEY `license_number` (`license_number`),
  KEY `enterprise_id` (`enterprise_id`),
  KEY `idx_license_expire` (`expire_date`),
  CONSTRAINT `enterprise_license_ibfk_1` FOREIGN KEY (`enterprise_id`) REFERENCES `enterprise` (`id`),
  CONSTRAINT `enterprise_license_chk_1` CHECK ((`license_type` in (_utf8mb4'危险化学品安全生产许可证',_utf8mb4'危险化学品登记证',_utf8mb4'安全生产标准化证书',_utf8mb4'安全评价报告',_utf8mb4'安全三同时'))),
  CONSTRAINT `enterprise_license_chk_2` CHECK ((`status` in (_utf8mb4'有效',_utf8mb4'过期',_utf8mb4'缺失')))
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='企业证照管理表';
CREATE TABLE `equipment_inspection` (
  `id` int NOT NULL AUTO_INCREMENT COMMENT '检测记录ID（自增主键）',
  `equipment_id` int NOT NULL COMMENT '关联设备ID（外键指向special_equipment.id）',
  `inspection_type` varchar(20) NOT NULL COMMENT '检测类型',
  `last_check_date` date NOT NULL COMMENT '本次检测日期',
  `next_check_date` date NOT NULL COMMENT '下次应检测日期（临期提醒依据）',
  `result` varchar(100) NOT NULL COMMENT '检测结果',
  `operator` varchar(50) DEFAULT NULL COMMENT '检测操作人员姓名',
  PRIMARY KEY (`id`),
  KEY `equipment_id` (`equipment_id`),
  CONSTRAINT `equipment_inspection_ibfk_1` FOREIGN KEY (`equipment_id`) REFERENCES `special_equipment` (`id`),
  CONSTRAINT `equipment_inspection_chk_1` CHECK ((`inspection_type` in (_utf8mb4'安全阀',_utf8mb4'爆破片',_utf8mb4'仪表联锁'))),
  CONSTRAINT `equipment_inspection_chk_2` CHECK ((`result` in (_utf8mb4'合格',_utf8mb4'不合格',_utf8mb4'待复检')))
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='设备检测记录表';
CREATE TABLE `gen_table` (
  `table_id` bigint NOT NULL AUTO_INCREMENT COMMENT '编号',
  `table_name` varchar(200) DEFAULT '' COMMENT '表名称',
  `table_comment` varchar(500) DEFAULT '' COMMENT '表描述',
  `sub_table_name` varchar(64) DEFAULT NULL COMMENT '关联子表的表名',
  `sub_table_fk_name` varchar(64) DEFAULT NULL COMMENT '子表关联的外键名',
  `class_name` varchar(100) DEFAULT '' COMMENT '实体类名称',
  `tpl_category` varchar(200) DEFAULT 'crud' COMMENT '使用的模板（crud单表操作 tree树表操作）',
  `tpl_web_type` varchar(30) DEFAULT '' COMMENT '前端模板类型（element-ui模版 element-plus模版）',
  `package_name` varchar(100) DEFAULT NULL COMMENT '生成包路径',
  `module_name` varchar(30) DEFAULT NULL COMMENT '生成模块名',
  `business_name` varchar(30) DEFAULT NULL COMMENT '生成业务名',
  `function_name` varchar(50) DEFAULT NULL COMMENT '生成功能名',
  `function_author` varchar(50) DEFAULT NULL COMMENT '生成功能作者',
  `gen_type` char(1) DEFAULT '0' COMMENT '生成代码方式（0zip压缩包 1自定义路径）',
  `gen_path` varchar(200) DEFAULT '/' COMMENT '生成路径（不填默认项目路径）',
  `options` varchar(1000) DEFAULT NULL COMMENT '其它生成选项',
  `create_by` varchar(64) DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`table_id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='代码生成业务表';
CREATE TABLE `gen_table_column` (
  `column_id` bigint NOT NULL AUTO_INCREMENT COMMENT '编号',
  `table_id` bigint DEFAULT NULL COMMENT '归属表编号',
  `column_name` varchar(200) DEFAULT NULL COMMENT '列名称',
  `column_comment` varchar(500) DEFAULT NULL COMMENT '列描述',
  `column_type` varchar(100) DEFAULT NULL COMMENT '列类型',
  `java_type` varchar(500) DEFAULT NULL COMMENT 'JAVA类型',
  `java_field` varchar(200) DEFAULT NULL COMMENT 'JAVA字段名',
  `is_pk` char(1) DEFAULT NULL COMMENT '是否主键（1是）',
  `is_increment` char(1) DEFAULT NULL COMMENT '是否自增（1是）',
  `is_required` char(1) DEFAULT NULL COMMENT '是否必填（1是）',
  `is_insert` char(1) DEFAULT NULL COMMENT '是否为插入字段（1是）',
  `is_edit` char(1) DEFAULT NULL COMMENT '是否编辑字段（1是）',
  `is_list` char(1) DEFAULT NULL COMMENT '是否列表字段（1是）',
  `is_query` char(1) DEFAULT NULL COMMENT '是否查询字段（1是）',
  `query_type` varchar(200) DEFAULT 'EQ' COMMENT '查询方式（等于、不等于、大于、小于、范围）',
  `html_type` varchar(200) DEFAULT NULL COMMENT '显示类型（文本框、文本域、下拉框、复选框、单选框、日期控件）',
  `dict_type` varchar(200) DEFAULT '' COMMENT '字典类型',
  `sort` int DEFAULT NULL COMMENT '排序',
  `create_by` varchar(64) DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`column_id`)
) ENGINE=InnoDB AUTO_INCREMENT=59 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='代码生成业务表字段';
CREATE TABLE `license_reminder` (
  `id` int NOT NULL AUTO_INCREMENT COMMENT '提醒记录ID（自增主键）',
  `license_id` int NOT NULL COMMENT '关联证照ID（外键指向enterprise_license.id）',
  `reminder_type` varchar(20) NOT NULL COMMENT '提醒类型',
  `trigger_date` date NOT NULL COMMENT '触发提醒的日期',
  `handler` varchar(50) DEFAULT NULL COMMENT '处理责任人',
  `status` varchar(20) DEFAULT '待处理' COMMENT '处理状态',
  PRIMARY KEY (`id`),
  KEY `license_id` (`license_id`),
  CONSTRAINT `license_reminder_ibfk_1` FOREIGN KEY (`license_id`) REFERENCES `enterprise_license` (`id`),
  CONSTRAINT `license_reminder_chk_1` CHECK ((`reminder_type` in (_utf8mb4'临期',_utf8mb4'缺失'))),
  CONSTRAINT `license_reminder_chk_2` CHECK ((`status` in (_utf8mb4'待处理',_utf8mb4'已处理',_utf8mb4'已忽略')))
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='证照提醒记录表';
CREATE TABLE `qrtz_blob_triggers` (
  `sched_name` varchar(120) NOT NULL COMMENT '调度名称',
  `trigger_name` varchar(200) NOT NULL COMMENT 'qrtz_triggers表trigger_name的外键',
  `trigger_group` varchar(200) NOT NULL COMMENT 'qrtz_triggers表trigger_group的外键',
  `blob_data` blob COMMENT '存放持久化Trigger对象',
  PRIMARY KEY (`sched_name`,`trigger_name`,`trigger_group`),
  CONSTRAINT `qrtz_blob_triggers_ibfk_1` FOREIGN KEY (`sched_name`, `trigger_name`, `trigger_group`) REFERENCES `qrtz_triggers` (`sched_name`, `trigger_name`, `trigger_group`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='Blob类型的触发器表';
CREATE TABLE `qrtz_calendars` (
  `sched_name` varchar(120) NOT NULL COMMENT '调度名称',
  `calendar_name` varchar(200) NOT NULL COMMENT '日历名称',
  `calendar` blob NOT NULL COMMENT '存放持久化calendar对象',
  PRIMARY KEY (`sched_name`,`calendar_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='日历信息表';
CREATE TABLE `qrtz_cron_triggers` (
  `sched_name` varchar(120) NOT NULL COMMENT '调度名称',
  `trigger_name` varchar(200) NOT NULL COMMENT 'qrtz_triggers表trigger_name的外键',
  `trigger_group` varchar(200) NOT NULL COMMENT 'qrtz_triggers表trigger_group的外键',
  `cron_expression` varchar(200) NOT NULL COMMENT 'cron表达式',
  `time_zone_id` varchar(80) DEFAULT NULL COMMENT '时区',
  PRIMARY KEY (`sched_name`,`trigger_name`,`trigger_group`),
  CONSTRAINT `qrtz_cron_triggers_ibfk_1` FOREIGN KEY (`sched_name`, `trigger_name`, `trigger_group`) REFERENCES `qrtz_triggers` (`sched_name`, `trigger_name`, `trigger_group`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='Cron类型的触发器表';
CREATE TABLE `qrtz_fired_triggers` (
  `sched_name` varchar(120) NOT NULL COMMENT '调度名称',
  `entry_id` varchar(95) NOT NULL COMMENT '调度器实例id',
  `trigger_name` varchar(200) NOT NULL COMMENT 'qrtz_triggers表trigger_name的外键',
  `trigger_group` varchar(200) NOT NULL COMMENT 'qrtz_triggers表trigger_group的外键',
  `instance_name` varchar(200) NOT NULL COMMENT '调度器实例名',
  `fired_time` bigint NOT NULL COMMENT '触发的时间',
  `sched_time` bigint NOT NULL COMMENT '定时器制定的时间',
  `priority` int NOT NULL COMMENT '优先级',
  `state` varchar(16) NOT NULL COMMENT '状态',
  `job_name` varchar(200) DEFAULT NULL COMMENT '任务名称',
  `job_group` varchar(200) DEFAULT NULL COMMENT '任务组名',
  `is_nonconcurrent` varchar(1) DEFAULT NULL COMMENT '是否并发',
  `requests_recovery` varchar(1) DEFAULT NULL COMMENT '是否接受恢复执行',
  PRIMARY KEY (`sched_name`,`entry_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='已触发的触发器表';
CREATE TABLE `qrtz_job_details` (
  `sched_name` varchar(120) NOT NULL COMMENT '调度名称',
  `job_name` varchar(200) NOT NULL COMMENT '任务名称',
  `job_group` varchar(200) NOT NULL COMMENT '任务组名',
  `description` varchar(250) DEFAULT NULL COMMENT '相关介绍',
  `job_class_name` varchar(250) NOT NULL COMMENT '执行任务类名称',
  `is_durable` varchar(1) NOT NULL COMMENT '是否持久化',
  `is_nonconcurrent` varchar(1) NOT NULL COMMENT '是否并发',
  `is_update_data` varchar(1) NOT NULL COMMENT '是否更新数据',
  `requests_recovery` varchar(1) NOT NULL COMMENT '是否接受恢复执行',
  `job_data` blob COMMENT '存放持久化job对象',
  PRIMARY KEY (`sched_name`,`job_name`,`job_group`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='任务详细信息表';
CREATE TABLE `qrtz_locks` (
  `sched_name` varchar(120) NOT NULL COMMENT '调度名称',
  `lock_name` varchar(40) NOT NULL COMMENT '悲观锁名称',
  PRIMARY KEY (`sched_name`,`lock_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='存储的悲观锁信息表';
CREATE TABLE `qrtz_paused_trigger_grps` (
  `sched_name` varchar(120) NOT NULL COMMENT '调度名称',
  `trigger_group` varchar(200) NOT NULL COMMENT 'qrtz_triggers表trigger_group的外键',
  PRIMARY KEY (`sched_name`,`trigger_group`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='暂停的触发器表';
CREATE TABLE `qrtz_scheduler_state` (
  `sched_name` varchar(120) NOT NULL COMMENT '调度名称',
  `instance_name` varchar(200) NOT NULL COMMENT '实例名称',
  `last_checkin_time` bigint NOT NULL COMMENT '上次检查时间',
  `checkin_interval` bigint NOT NULL COMMENT '检查间隔时间',
  PRIMARY KEY (`sched_name`,`instance_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='调度器状态表';
CREATE TABLE `qrtz_simple_triggers` (
  `sched_name` varchar(120) NOT NULL COMMENT '调度名称',
  `trigger_name` varchar(200) NOT NULL COMMENT 'qrtz_triggers表trigger_name的外键',
  `trigger_group` varchar(200) NOT NULL COMMENT 'qrtz_triggers表trigger_group的外键',
  `repeat_count` bigint NOT NULL COMMENT '重复的次数统计',
  `repeat_interval` bigint NOT NULL COMMENT '重复的间隔时间',
  `times_triggered` bigint NOT NULL COMMENT '已经触发的次数',
  PRIMARY KEY (`sched_name`,`trigger_name`,`trigger_group`),
  CONSTRAINT `qrtz_simple_triggers_ibfk_1` FOREIGN KEY (`sched_name`, `trigger_name`, `trigger_group`) REFERENCES `qrtz_triggers` (`sched_name`, `trigger_name`, `trigger_group`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='简单触发器的信息表';
CREATE TABLE `qrtz_simprop_triggers` (
  `sched_name` varchar(120) NOT NULL COMMENT '调度名称',
  `trigger_name` varchar(200) NOT NULL COMMENT 'qrtz_triggers表trigger_name的外键',
  `trigger_group` varchar(200) NOT NULL COMMENT 'qrtz_triggers表trigger_group的外键',
  `str_prop_1` varchar(512) DEFAULT NULL COMMENT 'String类型的trigger的第一个参数',
  `str_prop_2` varchar(512) DEFAULT NULL COMMENT 'String类型的trigger的第二个参数',
  `str_prop_3` varchar(512) DEFAULT NULL COMMENT 'String类型的trigger的第三个参数',
  `int_prop_1` int DEFAULT NULL COMMENT 'int类型的trigger的第一个参数',
  `int_prop_2` int DEFAULT NULL COMMENT 'int类型的trigger的第二个参数',
  `long_prop_1` bigint DEFAULT NULL COMMENT 'long类型的trigger的第一个参数',
  `long_prop_2` bigint DEFAULT NULL COMMENT 'long类型的trigger的第二个参数',
  `dec_prop_1` decimal(13,4) DEFAULT NULL COMMENT 'decimal类型的trigger的第一个参数',
  `dec_prop_2` decimal(13,4) DEFAULT NULL COMMENT 'decimal类型的trigger的第二个参数',
  `bool_prop_1` varchar(1) DEFAULT NULL COMMENT 'Boolean类型的trigger的第一个参数',
  `bool_prop_2` varchar(1) DEFAULT NULL COMMENT 'Boolean类型的trigger的第二个参数',
  PRIMARY KEY (`sched_name`,`trigger_name`,`trigger_group`),
  CONSTRAINT `qrtz_simprop_triggers_ibfk_1` FOREIGN KEY (`sched_name`, `trigger_name`, `trigger_group`) REFERENCES `qrtz_triggers` (`sched_name`, `trigger_name`, `trigger_group`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='同步机制的行锁表';
CREATE TABLE `qrtz_triggers` (
  `sched_name` varchar(120) NOT NULL COMMENT '调度名称',
  `trigger_name` varchar(200) NOT NULL COMMENT '触发器的名字',
  `trigger_group` varchar(200) NOT NULL COMMENT '触发器所属组的名字',
  `job_name` varchar(200) NOT NULL COMMENT 'qrtz_job_details表job_name的外键',
  `job_group` varchar(200) NOT NULL COMMENT 'qrtz_job_details表job_group的外键',
  `description` varchar(250) DEFAULT NULL COMMENT '相关介绍',
  `next_fire_time` bigint DEFAULT NULL COMMENT '上一次触发时间（毫秒）',
  `prev_fire_time` bigint DEFAULT NULL COMMENT '下一次触发时间（默认为-1表示不触发）',
  `priority` int DEFAULT NULL COMMENT '优先级',
  `trigger_state` varchar(16) NOT NULL COMMENT '触发器状态',
  `trigger_type` varchar(8) NOT NULL COMMENT '触发器的类型',
  `start_time` bigint NOT NULL COMMENT '开始时间',
  `end_time` bigint DEFAULT NULL COMMENT '结束时间',
  `calendar_name` varchar(200) DEFAULT NULL COMMENT '日程表名称',
  `misfire_instr` smallint DEFAULT NULL COMMENT '补偿执行的策略',
  `job_data` blob COMMENT '存放持久化job对象',
  PRIMARY KEY (`sched_name`,`trigger_name`,`trigger_group`),
  KEY `sched_name` (`sched_name`,`job_name`,`job_group`),
  CONSTRAINT `qrtz_triggers_ibfk_1` FOREIGN KEY (`sched_name`, `job_name`, `job_group`) REFERENCES `qrtz_job_details` (`sched_name`, `job_name`, `job_group`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='触发器详细信息表';
CREATE TABLE `special_equipment` (
  `id` int NOT NULL AUTO_INCREMENT COMMENT '设备唯一ID（自增主键）',
  `enterprise_id` int NOT NULL COMMENT '所属企业ID（外键指向enterprise.id）',
  `device_type` varchar(50) NOT NULL COMMENT '设备类型',
  `model` varchar(50) NOT NULL COMMENT '设备型号（厂家定义的标准型号）',
  `serial_number` varchar(100) NOT NULL COMMENT '设备序列号（厂家镭雕唯一标识）',
  `install_date` date NOT NULL COMMENT '设备安装日期',
  `status` varchar(20) NOT NULL COMMENT '设备状态',
  PRIMARY KEY (`id`),
  UNIQUE KEY `serial_number` (`serial_number`),
  KEY `enterprise_id` (`enterprise_id`),
  CONSTRAINT `special_equipment_ibfk_1` FOREIGN KEY (`enterprise_id`) REFERENCES `enterprise` (`id`),
  CONSTRAINT `special_equipment_chk_1` CHECK ((`device_type` in (_utf8mb4'压力容器',_utf8mb4'安全阀',_utf8mb4'爆破片',_utf8mb4'安全仪表联锁'))),
  CONSTRAINT `special_equipment_chk_2` CHECK ((`status` in (_utf8mb4'运行中',_utf8mb4'停用',_utf8mb4'维修中')))
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='特种设备台账表';
CREATE TABLE `sys_config` (
  `config_id` int NOT NULL AUTO_INCREMENT COMMENT '参数主键',
  `config_name` varchar(100) DEFAULT '' COMMENT '参数名称',
  `config_key` varchar(100) DEFAULT '' COMMENT '参数键名',
  `config_value` varchar(500) DEFAULT '' COMMENT '参数键值',
  `config_type` char(1) DEFAULT 'N' COMMENT '系统内置（Y是 N否）',
  `create_by` varchar(64) DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`config_id`)
) ENGINE=InnoDB AUTO_INCREMENT=100 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='参数配置表';
CREATE TABLE `sys_dept` (
  `dept_id` bigint NOT NULL AUTO_INCREMENT COMMENT '部门id',
  `parent_id` bigint DEFAULT '0' COMMENT '父部门id',
  `ancestors` varchar(50) DEFAULT '' COMMENT '祖级列表',
  `dept_name` varchar(30) DEFAULT '' COMMENT '部门名称',
  `order_num` int DEFAULT '0' COMMENT '显示顺序',
  `leader` varchar(20) DEFAULT NULL COMMENT '负责人',
  `phone` varchar(11) DEFAULT NULL COMMENT '联系电话',
  `email` varchar(50) DEFAULT NULL COMMENT '邮箱',
  `status` char(1) DEFAULT '0' COMMENT '部门状态（0正常 1停用）',
  `del_flag` char(1) DEFAULT '0' COMMENT '删除标志（0代表存在 2代表删除）',
  `create_by` varchar(64) DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`dept_id`)
) ENGINE=InnoDB AUTO_INCREMENT=200 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='部门表';
CREATE TABLE `sys_dict_data` (
  `dict_code` bigint NOT NULL AUTO_INCREMENT COMMENT '字典编码',
  `dict_sort` int DEFAULT '0' COMMENT '字典排序',
  `dict_label` varchar(100) DEFAULT '' COMMENT '字典标签',
  `dict_value` varchar(100) DEFAULT '' COMMENT '字典键值',
  `dict_type` varchar(100) DEFAULT '' COMMENT '字典类型',
  `css_class` varchar(100) DEFAULT NULL COMMENT '样式属性（其他样式扩展）',
  `list_class` varchar(100) DEFAULT NULL COMMENT '表格回显样式',
  `is_default` char(1) DEFAULT 'N' COMMENT '是否默认（Y是 N否）',
  `status` char(1) DEFAULT '0' COMMENT '状态（0正常 1停用）',
  `create_by` varchar(64) DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`dict_code`)
) ENGINE=InnoDB AUTO_INCREMENT=103 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='字典数据表';
CREATE TABLE `sys_dict_type` (
  `dict_id` bigint NOT NULL AUTO_INCREMENT COMMENT '字典主键',
  `dict_name` varchar(100) DEFAULT '' COMMENT '字典名称',
  `dict_type` varchar(100) DEFAULT '' COMMENT '字典类型',
  `status` char(1) DEFAULT '0' COMMENT '状态（0正常 1停用）',
  `create_by` varchar(64) DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`dict_id`),
  UNIQUE KEY `dict_type` (`dict_type`)
) ENGINE=InnoDB AUTO_INCREMENT=101 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='字典类型表';
CREATE TABLE `sys_job` (
  `job_id` bigint NOT NULL AUTO_INCREMENT COMMENT '任务ID',
  `job_name` varchar(64) NOT NULL DEFAULT '' COMMENT '任务名称',
  `job_group` varchar(64) NOT NULL DEFAULT 'DEFAULT' COMMENT '任务组名',
  `invoke_target` varchar(500) NOT NULL COMMENT '调用目标字符串',
  `cron_expression` varchar(255) DEFAULT '' COMMENT 'cron执行表达式',
  `misfire_policy` varchar(20) DEFAULT '3' COMMENT '计划执行错误策略（1立即执行 2执行一次 3放弃执行）',
  `concurrent` char(1) DEFAULT '1' COMMENT '是否并发执行（0允许 1禁止）',
  `status` char(1) DEFAULT '0' COMMENT '状态（0正常 1暂停）',
  `create_by` varchar(64) DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) DEFAULT '' COMMENT '备注信息',
  PRIMARY KEY (`job_id`,`job_name`,`job_group`)
) ENGINE=InnoDB AUTO_INCREMENT=100 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='定时任务调度表';
CREATE TABLE `sys_job_log` (
  `job_log_id` bigint NOT NULL AUTO_INCREMENT COMMENT '任务日志ID',
  `job_name` varchar(64) NOT NULL COMMENT '任务名称',
  `job_group` varchar(64) NOT NULL COMMENT '任务组名',
  `invoke_target` varchar(500) NOT NULL COMMENT '调用目标字符串',
  `job_message` varchar(500) DEFAULT NULL COMMENT '日志信息',
  `status` char(1) DEFAULT '0' COMMENT '执行状态（0正常 1失败）',
  `exception_info` varchar(2000) DEFAULT '' COMMENT '异常信息',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  PRIMARY KEY (`job_log_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='定时任务调度日志表';
CREATE TABLE `sys_logininfor` (
  `info_id` bigint NOT NULL AUTO_INCREMENT COMMENT '访问ID',
  `user_name` varchar(50) DEFAULT '' COMMENT '用户账号',
  `ipaddr` varchar(128) DEFAULT '' COMMENT '登录IP地址',
  `login_location` varchar(255) DEFAULT '' COMMENT '登录地点',
  `browser` varchar(50) DEFAULT '' COMMENT '浏览器类型',
  `os` varchar(50) DEFAULT '' COMMENT '操作系统',
  `status` char(1) DEFAULT '0' COMMENT '登录状态（0成功 1失败）',
  `msg` varchar(255) DEFAULT '' COMMENT '提示消息',
  `login_time` datetime DEFAULT NULL COMMENT '访问时间',
  PRIMARY KEY (`info_id`),
  KEY `idx_sys_logininfor_s` (`status`),
  KEY `idx_sys_logininfor_lt` (`login_time`)
) ENGINE=InnoDB AUTO_INCREMENT=112 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='系统访问记录';
CREATE TABLE `sys_menu` (
  `menu_id` bigint NOT NULL AUTO_INCREMENT COMMENT '菜单ID',
  `menu_name` varchar(50) NOT NULL COMMENT '菜单名称',
  `parent_id` bigint DEFAULT '0' COMMENT '父菜单ID',
  `order_num` int DEFAULT '0' COMMENT '显示顺序',
  `path` varchar(200) DEFAULT '' COMMENT '路由地址',
  `component` varchar(255) DEFAULT NULL COMMENT '组件路径',
  `query` varchar(255) DEFAULT NULL COMMENT '路由参数',
  `route_name` varchar(50) DEFAULT '' COMMENT '路由名称',
  `is_frame` int DEFAULT '1' COMMENT '是否为外链（0是 1否）',
  `is_cache` int DEFAULT '0' COMMENT '是否缓存（0缓存 1不缓存）',
  `menu_type` char(1) DEFAULT '' COMMENT '菜单类型（M目录 C菜单 F按钮）',
  `visible` char(1) DEFAULT '0' COMMENT '菜单状态（0显示 1隐藏）',
  `status` char(1) DEFAULT '0' COMMENT '菜单状态（0正常 1停用）',
  `perms` varchar(100) DEFAULT NULL COMMENT '权限标识',
  `icon` varchar(100) DEFAULT '#' COMMENT '菜单图标',
  `create_by` varchar(64) DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) DEFAULT '' COMMENT '备注',
  PRIMARY KEY (`menu_id`)
) ENGINE=InnoDB AUTO_INCREMENT=2049 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='菜单权限表';
CREATE TABLE `sys_notice` (
  `notice_id` int NOT NULL AUTO_INCREMENT COMMENT '公告ID',
  `notice_title` varchar(50) NOT NULL COMMENT '公告标题',
  `notice_type` char(1) NOT NULL COMMENT '公告类型（1通知 2公告）',
  `notice_content` longblob COMMENT '公告内容',
  `status` char(1) DEFAULT '0' COMMENT '公告状态（0正常 1关闭）',
  `create_by` varchar(64) DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(255) DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`notice_id`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='通知公告表';
CREATE TABLE `sys_oper_log` (
  `oper_id` bigint NOT NULL AUTO_INCREMENT COMMENT '日志主键',
  `title` varchar(50) DEFAULT '' COMMENT '模块标题',
  `business_type` int DEFAULT '0' COMMENT '业务类型（0其它 1新增 2修改 3删除）',
  `method` varchar(200) DEFAULT '' COMMENT '方法名称',
  `request_method` varchar(10) DEFAULT '' COMMENT '请求方式',
  `operator_type` int DEFAULT '0' COMMENT '操作类别（0其它 1后台用户 2手机端用户）',
  `oper_name` varchar(50) DEFAULT '' COMMENT '操作人员',
  `dept_name` varchar(50) DEFAULT '' COMMENT '部门名称',
  `oper_url` varchar(255) DEFAULT '' COMMENT '请求URL',
  `oper_ip` varchar(128) DEFAULT '' COMMENT '主机地址',
  `oper_location` varchar(255) DEFAULT '' COMMENT '操作地点',
  `oper_param` varchar(2000) DEFAULT '' COMMENT '请求参数',
  `json_result` varchar(2000) DEFAULT '' COMMENT '返回参数',
  `status` int DEFAULT '0' COMMENT '操作状态（0正常 1异常）',
  `error_msg` varchar(2000) DEFAULT '' COMMENT '错误消息',
  `oper_time` datetime DEFAULT NULL COMMENT '操作时间',
  `cost_time` bigint DEFAULT '0' COMMENT '消耗时间',
  PRIMARY KEY (`oper_id`),
  KEY `idx_sys_oper_log_bt` (`business_type`),
  KEY `idx_sys_oper_log_s` (`status`),
  KEY `idx_sys_oper_log_ot` (`oper_time`)
) ENGINE=InnoDB AUTO_INCREMENT=178 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='操作日志记录';
CREATE TABLE `sys_post` (
  `post_id` bigint NOT NULL AUTO_INCREMENT COMMENT '岗位ID',
  `post_code` varchar(64) NOT NULL COMMENT '岗位编码',
  `post_name` varchar(50) NOT NULL COMMENT '岗位名称',
  `post_sort` int NOT NULL COMMENT '显示顺序',
  `status` char(1) NOT NULL COMMENT '状态（0正常 1停用）',
  `create_by` varchar(64) DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`post_id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='岗位信息表';
CREATE TABLE `sys_role` (
  `role_id` bigint NOT NULL AUTO_INCREMENT COMMENT '角色ID',
  `role_name` varchar(30) NOT NULL COMMENT '角色名称',
  `role_key` varchar(100) NOT NULL COMMENT '角色权限字符串',
  `role_sort` int NOT NULL COMMENT '显示顺序',
  `data_scope` char(1) DEFAULT '1' COMMENT '数据范围（1：全部数据权限 2：自定数据权限 3：本部门数据权限 4：本部门及以下数据权限）',
  `menu_check_strictly` tinyint(1) DEFAULT '1' COMMENT '菜单树选择项是否关联显示',
  `dept_check_strictly` tinyint(1) DEFAULT '1' COMMENT '部门树选择项是否关联显示',
  `status` char(1) NOT NULL COMMENT '角色状态（0正常 1停用）',
  `del_flag` char(1) DEFAULT '0' COMMENT '删除标志（0代表存在 2代表删除）',
  `create_by` varchar(64) DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`role_id`)
) ENGINE=InnoDB AUTO_INCREMENT=101 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='角色信息表';
CREATE TABLE `sys_role_dept` (
  `role_id` bigint NOT NULL COMMENT '角色ID',
  `dept_id` bigint NOT NULL COMMENT '部门ID',
  PRIMARY KEY (`role_id`,`dept_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='角色和部门关联表';
CREATE TABLE `sys_role_menu` (
  `role_id` bigint NOT NULL COMMENT '角色ID',
  `menu_id` bigint NOT NULL COMMENT '菜单ID',
  PRIMARY KEY (`role_id`,`menu_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='角色和菜单关联表';
CREATE TABLE `sys_user` (
  `user_id` bigint NOT NULL AUTO_INCREMENT COMMENT '用户ID',
  `dept_id` bigint DEFAULT NULL COMMENT '部门ID',
  `user_name` varchar(30) NOT NULL COMMENT '用户账号',
  `nick_name` varchar(30) NOT NULL COMMENT '用户昵称',
  `user_type` varchar(2) DEFAULT '00' COMMENT '用户类型（00系统用户）',
  `email` varchar(50) DEFAULT '' COMMENT '用户邮箱',
  `phonenumber` varchar(11) DEFAULT '' COMMENT '手机号码',
  `sex` char(1) DEFAULT '0' COMMENT '用户性别（0男 1女 2未知）',
  `avatar` varchar(100) DEFAULT '' COMMENT '头像地址',
  `password` varchar(100) DEFAULT '' COMMENT '密码',
  `status` char(1) DEFAULT '0' COMMENT '账号状态（0正常 1停用）',
  `del_flag` char(1) DEFAULT '0' COMMENT '删除标志（0代表存在 2代表删除）',
  `login_ip` varchar(128) DEFAULT '' COMMENT '最后登录IP',
  `login_date` datetime DEFAULT NULL COMMENT '最后登录时间',
  `create_by` varchar(64) DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=100 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='用户信息表';
CREATE TABLE `sys_user_post` (
  `user_id` bigint NOT NULL COMMENT '用户ID',
  `post_id` bigint NOT NULL COMMENT '岗位ID',
  PRIMARY KEY (`user_id`,`post_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='用户与岗位关联表';
CREATE TABLE `sys_user_role` (
  `user_id` bigint NOT NULL COMMENT '用户ID',
  `role_id` bigint NOT NULL COMMENT '角色ID',
  PRIMARY KEY (`user_id`,`role_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='用户和角色关联表';
CREATE TABLE `third_party_person` (
  `id` int NOT NULL AUTO_INCREMENT COMMENT '人员记录ID（自增主键）',
  `name` varchar(50) NOT NULL COMMENT '人员姓名',
  `type` varchar(20) NOT NULL COMMENT '人员类型',
  `enterprise_id` int NOT NULL COMMENT '关联企业ID（外键指向enterprise.id）',
  `contact` varchar(50) NOT NULL COMMENT '联系方式（手机号/邮箱，格式：13800138000或name@domain.com）',
  `access_time` datetime DEFAULT NULL COMMENT '准入时间（进入园区时间）',
  `exit_time` datetime DEFAULT NULL COMMENT '退出时间（离开园区时间）',
  PRIMARY KEY (`id`),
  KEY `enterprise_id` (`enterprise_id`),
  CONSTRAINT `third_party_person_ibfk_1` FOREIGN KEY (`enterprise_id`) REFERENCES `enterprise` (`id`),
  CONSTRAINT `third_party_person_chk_1` CHECK ((`type` in (_utf8mb4'承包商',_utf8mb4'供应商',_utf8mb4'访客')))
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='第三方人员管理表';
CREATE DEFINER=`root`@`localhost` EVENT `auto_generate_license_reminder` ON SCHEDULE EVERY 1 DAY STARTS '2025-05-01 22:56:28' ON COMPLETION NOT PRESERVE ENABLE DO INSERT INTO license_reminder (license_id, reminder_type, trigger_date)
    SELECT id, '临期', CURDATE()
    FROM enterprise_license
    WHERE expire_date BETWEEN CURDATE() AND CURDATE() + INTERVAL 7 DAY;
BEGIN;
LOCK TABLES `ry-vue`.`department` WRITE;
DELETE FROM `ry-vue`.`department`;
UNLOCK TABLES;
COMMIT;
BEGIN;
LOCK TABLES `ry-vue`.`employee` WRITE;
DELETE FROM `ry-vue`.`employee`;
UNLOCK TABLES;
COMMIT;
BEGIN;
LOCK TABLES `ry-vue`.`enterprise` WRITE;
DELETE FROM `ry-vue`.`enterprise`;
UNLOCK TABLES;
COMMIT;
BEGIN;
LOCK TABLES `ry-vue`.`enterprise_license` WRITE;
DELETE FROM `ry-vue`.`enterprise_license`;
UNLOCK TABLES;
COMMIT;
BEGIN;
LOCK TABLES `ry-vue`.`equipment_inspection` WRITE;
DELETE FROM `ry-vue`.`equipment_inspection`;
UNLOCK TABLES;
COMMIT;
BEGIN;
LOCK TABLES `ry-vue`.`gen_table` WRITE;
DELETE FROM `ry-vue`.`gen_table`;
INSERT INTO `ry-vue`.`gen_table` (`table_id`,`table_name`,`table_comment`,`sub_table_name`,`sub_table_fk_name`,`class_name`,`tpl_category`,`tpl_web_type`,`package_name`,`module_name`,`business_name`,`function_name`,`function_author`,`gen_type`,`gen_path`,`options`,`create_by`,`create_time`,`update_by`,`update_time`,`remark`) VALUES (1, 'employee', '企业员工信息表', NULL, NULL, 'Employee', 'crud', '', 'com.ruoyi.system', 'system', 'employee', '企业员工信息', 'ruoyi', '0', '/', NULL, 'admin', '2025-05-01 22:57:58', '', NULL, NULL),(2, 'equipment_inspection', '设备检测记录表', NULL, NULL, 'EquipmentInspection', 'crud', '', 'com.ruoyi.system', 'system', 'inspection', '设备检测记录', 'ruoyi', '0', '/', NULL, 'admin', '2025-05-01 22:57:58', '', NULL, NULL),(3, 'license_reminder', '证照提醒记录表', NULL, NULL, 'LicenseReminder', 'crud', '', 'com.ruoyi.system', 'system', 'reminder', '证照提醒记录', 'ruoyi', '0', '/', NULL, 'admin', '2025-05-01 22:57:58', '', NULL, NULL),(4, 'special_equipment', '特种设备台账表', NULL, NULL, 'SpecialEquipment', 'crud', '', 'com.ruoyi.system', 'system', 'equipment', '特种设备台账', 'ruoyi', '0', '/', NULL, 'admin', '2025-05-01 22:57:58', '', NULL, NULL),(5, 'third_party_person', '第三方人员管理表', NULL, NULL, 'ThirdPartyPerson', 'crud', '', 'com.ruoyi.system', 'system', 'person', '第三方人员管理', 'ruoyi', '0', '/', NULL, 'admin', '2025-05-01 22:57:58', '', NULL, NULL),(6, 'department', '企业部门信息表', '', '', 'Department', 'tree', 'element-plus', 'com.ruoyi.company', 'company', 'department_manage', '企业部门管理', 'admin', '0', '/', '{\"treeCode\":\"id\",\"treeName\":\"name\",\"treeParentCode\":\"enterprise_id\",\"parentMenuId\":2000}', 'admin', '2025-05-01 22:58:07', '', '2025-05-03 17:07:34', NULL),(7, 'enterprise', '企业核心信息表', NULL, NULL, 'Enterprise', 'crud', 'element-plus', 'com.ruoyi.company', 'company', 'manage', '公司管理', 'admin', '0', '/', '{\"parentMenuId\":2000}', 'admin', '2025-05-01 22:58:07', '', '2025-05-03 16:50:16', NULL),(8, 'enterprise_license', '企业证照管理表', NULL, NULL, 'EnterpriseLicense', 'crud', '', 'com.ruoyi.system', 'system', 'license', '企业证照管理', 'ruoyi', '0', '/', NULL, 'admin', '2025-05-01 22:58:07', '', NULL, NULL)
;
UNLOCK TABLES;
COMMIT;
BEGIN;
LOCK TABLES `ry-vue`.`gen_table_column` WRITE;
DELETE FROM `ry-vue`.`gen_table_column`;
INSERT INTO `ry-vue`.`gen_table_column` (`column_id`,`table_id`,`column_name`,`column_comment`,`column_type`,`java_type`,`java_field`,`is_pk`,`is_increment`,`is_required`,`is_insert`,`is_edit`,`is_list`,`is_query`,`query_type`,`html_type`,`dict_type`,`sort`,`create_by`,`create_time`,`update_by`,`update_time`) VALUES (1, 1, 'id', '员工唯一ID（自增主键）', 'int', 'Long', 'id', '1', '1', '0', '1', NULL, NULL, NULL, 'EQ', 'input', '', 1, 'admin', '2025-05-01 22:57:58', '', NULL),(2, 1, 'enterprise_id', '所属企业ID（外键指向enterprise.id）', 'int', 'Long', 'enterpriseId', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'input', '', 2, 'admin', '2025-05-01 22:57:58', '', NULL),(3, 1, 'name', '员工姓名', 'varchar(50)', 'String', 'name', '0', '0', '1', '1', '1', '1', '1', 'LIKE', 'input', '', 3, 'admin', '2025-05-01 22:57:58', '', NULL),(4, 1, 'role', '岗位角色', 'varchar(50)', 'String', 'role', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'input', '', 4, 'admin', '2025-05-01 22:57:58', '', NULL),(5, 1, 'status', '在职状态', 'varchar(20)', 'String', 'status', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'radio', '', 5, 'admin', '2025-05-01 22:57:58', '', NULL),(6, 1, 'join_date', '入职日期', 'date', 'Date', 'joinDate', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'datetime', '', 6, 'admin', '2025-05-01 22:57:58', '', NULL),(7, 1, 'department_id', '所属部门ID（外键指向department.id）', 'int', 'Long', 'departmentId', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'input', '', 7, 'admin', '2025-05-01 22:57:58', '', NULL),(8, 2, 'id', '检测记录ID（自增主键）', 'int', 'Long', 'id', '1', '1', '0', '1', NULL, NULL, NULL, 'EQ', 'input', '', 1, 'admin', '2025-05-01 22:57:58', '', NULL),(9, 2, 'equipment_id', '关联设备ID（外键指向special_equipment.id）', 'int', 'Long', 'equipmentId', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'input', '', 2, 'admin', '2025-05-01 22:57:58', '', NULL),(10, 2, 'inspection_type', '检测类型', 'varchar(20)', 'String', 'inspectionType', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'select', '', 3, 'admin', '2025-05-01 22:57:58', '', NULL),(11, 2, 'last_check_date', '本次检测日期', 'date', 'Date', 'lastCheckDate', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'datetime', '', 4, 'admin', '2025-05-01 22:57:58', '', NULL),(12, 2, 'next_check_date', '下次应检测日期（临期提醒依据）', 'date', 'Date', 'nextCheckDate', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'datetime', '', 5, 'admin', '2025-05-01 22:57:58', '', NULL),(13, 2, 'result', '检测结果', 'varchar(100)', 'String', 'result', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'input', '', 6, 'admin', '2025-05-01 22:57:58', '', NULL),(14, 2, 'operator', '检测操作人员姓名', 'varchar(50)', 'String', 'operator', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 7, 'admin', '2025-05-01 22:57:58', '', NULL),(15, 3, 'id', '提醒记录ID（自增主键）', 'int', 'Long', 'id', '1', '1', '0', '1', NULL, NULL, NULL, 'EQ', 'input', '', 1, 'admin', '2025-05-01 22:57:58', '', NULL),(16, 3, 'license_id', '关联证照ID（外键指向enterprise_license.id）', 'int', 'Long', 'licenseId', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'input', '', 2, 'admin', '2025-05-01 22:57:58', '', NULL),(17, 3, 'reminder_type', '提醒类型', 'varchar(20)', 'String', 'reminderType', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'select', '', 3, 'admin', '2025-05-01 22:57:58', '', NULL),(18, 3, 'trigger_date', '触发提醒的日期', 'date', 'Date', 'triggerDate', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'datetime', '', 4, 'admin', '2025-05-01 22:57:58', '', NULL),(19, 3, 'handler', '处理责任人', 'varchar(50)', 'String', 'handler', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 5, 'admin', '2025-05-01 22:57:58', '', NULL),(20, 3, 'status', '处理状态', 'varchar(20)', 'String', 'status', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'radio', '', 6, 'admin', '2025-05-01 22:57:58', '', NULL),(21, 4, 'id', '设备唯一ID（自增主键）', 'int', 'Long', 'id', '1', '1', '0', '1', NULL, NULL, NULL, 'EQ', 'input', '', 1, 'admin', '2025-05-01 22:57:58', '', NULL),(22, 4, 'enterprise_id', '所属企业ID（外键指向enterprise.id）', 'int', 'Long', 'enterpriseId', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'input', '', 2, 'admin', '2025-05-01 22:57:58', '', NULL),(23, 4, 'device_type', '设备类型', 'varchar(50)', 'String', 'deviceType', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'select', '', 3, 'admin', '2025-05-01 22:57:58', '', NULL),(24, 4, 'model', '设备型号（厂家定义的标准型号）', 'varchar(50)', 'String', 'model', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'input', '', 4, 'admin', '2025-05-01 22:57:58', '', NULL),(25, 4, 'serial_number', '设备序列号（厂家镭雕唯一标识）', 'varchar(100)', 'String', 'serialNumber', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'input', '', 5, 'admin', '2025-05-01 22:57:58', '', NULL),(26, 4, 'install_date', '设备安装日期', 'date', 'Date', 'installDate', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'datetime', '', 6, 'admin', '2025-05-01 22:57:58', '', NULL),(27, 4, 'status', '设备状态', 'varchar(20)', 'String', 'status', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'radio', '', 7, 'admin', '2025-05-01 22:57:58', '', NULL),(28, 5, 'id', '人员记录ID（自增主键）', 'int', 'Long', 'id', '1', '1', '0', '1', NULL, NULL, NULL, 'EQ', 'input', '', 1, 'admin', '2025-05-01 22:57:58', '', NULL),(29, 5, 'name', '人员姓名', 'varchar(50)', 'String', 'name', '0', '0', '1', '1', '1', '1', '1', 'LIKE', 'input', '', 2, 'admin', '2025-05-01 22:57:58', '', NULL),(30, 5, 'type', '人员类型', 'varchar(20)', 'String', 'type', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'select', '', 3, 'admin', '2025-05-01 22:57:58', '', NULL),(31, 5, 'enterprise_id', '关联企业ID（外键指向enterprise.id）', 'int', 'Long', 'enterpriseId', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'input', '', 4, 'admin', '2025-05-01 22:57:58', '', NULL),(32, 5, 'contact', '联系方式（手机号/邮箱，格式：13800138000或name@domain.com）', 'varchar(50)', 'String', 'contact', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'input', '', 5, 'admin', '2025-05-01 22:57:58', '', NULL),(33, 5, 'access_time', '准入时间（进入园区时间）', 'datetime', 'Date', 'accessTime', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'datetime', '', 6, 'admin', '2025-05-01 22:57:58', '', NULL),(34, 5, 'exit_time', '退出时间（离开园区时间）', 'datetime', 'Date', 'exitTime', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'datetime', '', 7, 'admin', '2025-05-01 22:57:58', '', NULL),(35, 6, 'id', '部门唯一ID（自增主键）', 'int', 'Long', 'id', '1', '1', '0', '0', NULL, NULL, NULL, 'EQ', 'input', '', 1, 'admin', '2025-05-01 22:58:07', '', '2025-05-03 17:07:34'),(36, 6, 'enterprise_id', '所属企业ID（外键指向enterprise.id）', 'int', 'Long', 'enterpriseId', '0', '0', '1', '0', '0', '0', '0', 'EQ', 'input', '', 2, 'admin', '2025-05-01 22:58:07', '', '2025-05-03 17:07:34'),(37, 6, 'name', '部门名称（同一企业下不可重复）', 'varchar(50)', 'String', 'name', '0', '0', '1', '1', '1', '1', '1', 'LIKE', 'input', '', 3, 'admin', '2025-05-01 22:58:07', '', '2025-05-03 17:07:34'),(38, 6, 'manager_id', '部门负责人ID（占位，后续通过ALTER添加外键）', 'int', 'Long', 'managerId', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 4, 'admin', '2025-05-01 22:58:07', '', '2025-05-03 17:07:34'),(39, 6, 'create_time', '部门创建时间', 'datetime', 'Date', 'createTime', '0', '0', '0', '1', NULL, NULL, NULL, 'EQ', 'datetime', '', 5, 'admin', '2025-05-01 22:58:07', '', '2025-05-03 17:07:34'),(40, 7, 'id', '企业唯一ID（自增主键）', 'int', 'Long', 'id', '1', '1', '0', '1', NULL, NULL, NULL, 'EQ', 'input', '', 1, 'admin', '2025-05-01 22:58:07', '', '2025-05-03 16:50:20'),(41, 7, 'name', '企业全称（唯一约束）', 'varchar(100)', 'String', 'name', '0', '0', '1', '1', '1', '1', '1', 'LIKE', 'input', '', 2, 'admin', '2025-05-01 22:58:07', '', '2025-05-03 16:50:20'),(42, 7, 'address', '企业注册地址（省市区+详细地址）', 'varchar(200)', 'String', 'address', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'input', '', 3, 'admin', '2025-05-01 22:58:07', '', '2025-05-03 16:50:20'),(43, 7, 'email', '企业官方邮箱（需符合RFC5322标准格式）', 'varchar(100)', 'String', 'email', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 6, 'admin', '2025-05-01 22:58:07', '', '2025-05-03 16:50:20'),(44, 7, 'establish_date', '企业成立日期（YYYY-MM-DD格式）', 'date', 'Date', 'establishDate', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'datetime', '', 8, 'admin', '2025-05-01 22:58:07', '', '2025-05-03 16:50:20'),(45, 7, 'unified_social_code', '统一社会信用代码（18位数字/字母组合，唯一标识企业）', 'char(18)', 'String', 'unifiedSocialCode', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'input', '', 9, 'admin', '2025-05-01 22:58:07', '', '2025-05-03 16:50:20'),(46, 7, 'status', '企业运营状态（正常运营/停业整顿/注销）', 'varchar(20)', 'String', 'status', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'select', 'company_status', 10, 'admin', '2025-05-01 22:58:07', '', '2025-05-03 16:50:20'),(47, 8, 'id', '证照记录ID（自增主键）', 'int', 'Long', 'id', '1', '1', '0', '1', NULL, NULL, NULL, 'EQ', 'input', '', 1, 'admin', '2025-05-01 22:58:07', '', NULL),(48, 8, 'enterprise_id', '关联企业ID（外键指向enterprise.id）', 'int', 'Long', 'enterpriseId', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'input', '', 2, 'admin', '2025-05-01 22:58:07', '', NULL),(49, 8, 'license_type', '证照类型', 'varchar(50)', 'String', 'licenseType', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'select', '', 3, 'admin', '2025-05-01 22:58:07', '', NULL),(50, 8, 'license_number', '证照编号（发证机关颁发的唯一编号）', 'varchar(100)', 'String', 'licenseNumber', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'input', '', 4, 'admin', '2025-05-01 22:58:07', '', NULL),(51, 8, 'issue_date', '证照颁发日期', 'date', 'Date', 'issueDate', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'datetime', '', 5, 'admin', '2025-05-01 22:58:07', '', NULL),(52, 8, 'expire_date', '证照失效日期', 'date', 'Date', 'expireDate', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'datetime', '', 6, 'admin', '2025-05-01 22:58:07', '', NULL),(53, 8, 'attachment_path', '电子版证照文件存储路径（OSS/MinIO地址）', 'varchar(255)', 'String', 'attachmentPath', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 7, 'admin', '2025-05-01 22:58:07', '', NULL),(54, 8, 'status', '证照状态', 'varchar(20)', 'String', 'status', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'radio', '', 8, 'admin', '2025-05-01 22:58:07', '', NULL),(56, 7, 'phone_number', '电话', 'varchar(20)', 'String', 'phoneNumber', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 5, '', '2025-05-03 12:55:58', '', '2025-05-03 16:50:20'),(57, 7, 'official_website', '企业官网地址（需包含协议头）', 'varchar(255)', 'String', 'officialWebsite', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 7, '', '2025-05-03 12:55:58', '', '2025-05-03 16:50:20'),(58, 7, 'legal_person', '法人姓名', 'varchar(100)', 'String', 'legalPerson', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'input', '', 4, '', '2025-05-03 16:37:43', '', '2025-05-03 16:50:20')
;
UNLOCK TABLES;
COMMIT;
BEGIN;
LOCK TABLES `ry-vue`.`license_reminder` WRITE;
DELETE FROM `ry-vue`.`license_reminder`;
UNLOCK TABLES;
COMMIT;
BEGIN;
LOCK TABLES `ry-vue`.`qrtz_blob_triggers` WRITE;
DELETE FROM `ry-vue`.`qrtz_blob_triggers`;
UNLOCK TABLES;
COMMIT;
BEGIN;
LOCK TABLES `ry-vue`.`qrtz_calendars` WRITE;
DELETE FROM `ry-vue`.`qrtz_calendars`;
UNLOCK TABLES;
COMMIT;
BEGIN;
LOCK TABLES `ry-vue`.`qrtz_cron_triggers` WRITE;
DELETE FROM `ry-vue`.`qrtz_cron_triggers`;
UNLOCK TABLES;
COMMIT;
BEGIN;
LOCK TABLES `ry-vue`.`qrtz_fired_triggers` WRITE;
DELETE FROM `ry-vue`.`qrtz_fired_triggers`;
UNLOCK TABLES;
COMMIT;
BEGIN;
LOCK TABLES `ry-vue`.`qrtz_job_details` WRITE;
DELETE FROM `ry-vue`.`qrtz_job_details`;
UNLOCK TABLES;
COMMIT;
BEGIN;
LOCK TABLES `ry-vue`.`qrtz_locks` WRITE;
DELETE FROM `ry-vue`.`qrtz_locks`;
UNLOCK TABLES;
COMMIT;
BEGIN;
LOCK TABLES `ry-vue`.`qrtz_paused_trigger_grps` WRITE;
DELETE FROM `ry-vue`.`qrtz_paused_trigger_grps`;
UNLOCK TABLES;
COMMIT;
BEGIN;
LOCK TABLES `ry-vue`.`qrtz_scheduler_state` WRITE;
DELETE FROM `ry-vue`.`qrtz_scheduler_state`;
UNLOCK TABLES;
COMMIT;
BEGIN;
LOCK TABLES `ry-vue`.`qrtz_simple_triggers` WRITE;
DELETE FROM `ry-vue`.`qrtz_simple_triggers`;
UNLOCK TABLES;
COMMIT;
BEGIN;
LOCK TABLES `ry-vue`.`qrtz_simprop_triggers` WRITE;
DELETE FROM `ry-vue`.`qrtz_simprop_triggers`;
UNLOCK TABLES;
COMMIT;
BEGIN;
LOCK TABLES `ry-vue`.`qrtz_triggers` WRITE;
DELETE FROM `ry-vue`.`qrtz_triggers`;
UNLOCK TABLES;
COMMIT;
BEGIN;
LOCK TABLES `ry-vue`.`special_equipment` WRITE;
DELETE FROM `ry-vue`.`special_equipment`;
UNLOCK TABLES;
COMMIT;
BEGIN;
LOCK TABLES `ry-vue`.`sys_config` WRITE;
DELETE FROM `ry-vue`.`sys_config`;
INSERT INTO `ry-vue`.`sys_config` (`config_id`,`config_name`,`config_key`,`config_value`,`config_type`,`create_by`,`create_time`,`update_by`,`update_time`,`remark`) VALUES (1, '主框架页-默认皮肤样式名称', 'sys.index.skinName', 'skin-blue', 'Y', 'admin', '2025-05-01 22:57:19', '', NULL, '蓝色 skin-blue、绿色 skin-green、紫色 skin-purple、红色 skin-red、黄色 skin-yellow'),(2, '用户管理-账号初始密码', 'sys.user.initPassword', '123456', 'Y', 'admin', '2025-05-01 22:57:19', '', NULL, '初始化密码 123456'),(3, '主框架页-侧边栏主题', 'sys.index.sideTheme', 'theme-dark', 'Y', 'admin', '2025-05-01 22:57:19', '', NULL, '深色主题theme-dark，浅色主题theme-light'),(4, '账号自助-验证码开关', 'sys.account.captchaEnabled', 'true', 'Y', 'admin', '2025-05-01 22:57:19', '', NULL, '是否开启验证码功能（true开启，false关闭）'),(5, '账号自助-是否开启用户注册功能', 'sys.account.registerUser', 'false', 'Y', 'admin', '2025-05-01 22:57:19', '', NULL, '是否开启注册用户功能（true开启，false关闭）'),(6, '用户登录-黑名单列表', 'sys.login.blackIPList', '', 'Y', 'admin', '2025-05-01 22:57:19', '', NULL, '设置登录IP黑名单限制，多个匹配项以;分隔，支持匹配（*通配、网段）')
;
UNLOCK TABLES;
COMMIT;
BEGIN;
LOCK TABLES `ry-vue`.`sys_dept` WRITE;
DELETE FROM `ry-vue`.`sys_dept`;
INSERT INTO `ry-vue`.`sys_dept` (`dept_id`,`parent_id`,`ancestors`,`dept_name`,`order_num`,`leader`,`phone`,`email`,`status`,`del_flag`,`create_by`,`create_time`,`update_by`,`update_time`) VALUES (100, 0, '0', '若依科技', 0, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', '2025-05-01 22:57:17', '', NULL),(101, 100, '0,100', '深圳总公司', 1, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', '2025-05-01 22:57:17', '', NULL),(102, 100, '0,100', '长沙分公司', 2, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', '2025-05-01 22:57:17', '', NULL),(103, 101, '0,100,101', '研发部门', 1, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', '2025-05-01 22:57:17', '', NULL),(104, 101, '0,100,101', '市场部门', 2, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', '2025-05-01 22:57:17', '', NULL),(105, 101, '0,100,101', '测试部门', 3, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', '2025-05-01 22:57:17', '', NULL),(106, 101, '0,100,101', '财务部门', 4, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', '2025-05-01 22:57:17', '', NULL),(107, 101, '0,100,101', '运维部门', 5, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', '2025-05-01 22:57:17', '', NULL),(108, 102, '0,100,102', '市场部门', 1, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', '2025-05-01 22:57:17', '', NULL),(109, 102, '0,100,102', '财务部门', 2, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', '2025-05-01 22:57:17', '', NULL)
;
UNLOCK TABLES;
COMMIT;
BEGIN;
LOCK TABLES `ry-vue`.`sys_dict_data` WRITE;
DELETE FROM `ry-vue`.`sys_dict_data`;
INSERT INTO `ry-vue`.`sys_dict_data` (`dict_code`,`dict_sort`,`dict_label`,`dict_value`,`dict_type`,`css_class`,`list_class`,`is_default`,`status`,`create_by`,`create_time`,`update_by`,`update_time`,`remark`) VALUES (1, 1, '男', '0', 'sys_user_sex', '', '', 'Y', '0', 'admin', '2025-05-01 22:57:18', '', NULL, '性别男'),(2, 2, '女', '1', 'sys_user_sex', '', '', 'N', '0', 'admin', '2025-05-01 22:57:18', '', NULL, '性别女'),(3, 3, '未知', '2', 'sys_user_sex', '', '', 'N', '0', 'admin', '2025-05-01 22:57:18', '', NULL, '性别未知'),(4, 1, '显示', '0', 'sys_show_hide', '', 'primary', 'Y', '0', 'admin', '2025-05-01 22:57:18', '', NULL, '显示菜单'),(5, 2, '隐藏', '1', 'sys_show_hide', '', 'danger', 'N', '0', 'admin', '2025-05-01 22:57:18', '', NULL, '隐藏菜单'),(6, 1, '正常', '0', 'sys_normal_disable', '', 'primary', 'Y', '0', 'admin', '2025-05-01 22:57:18', '', NULL, '正常状态'),(7, 2, '停用', '1', 'sys_normal_disable', '', 'danger', 'N', '0', 'admin', '2025-05-01 22:57:18', '', NULL, '停用状态'),(8, 1, '正常', '0', 'sys_job_status', '', 'primary', 'Y', '0', 'admin', '2025-05-01 22:57:18', '', NULL, '正常状态'),(9, 2, '暂停', '1', 'sys_job_status', '', 'danger', 'N', '0', 'admin', '2025-05-01 22:57:18', '', NULL, '停用状态'),(10, 1, '默认', 'DEFAULT', 'sys_job_group', '', '', 'Y', '0', 'admin', '2025-05-01 22:57:18', '', NULL, '默认分组'),(11, 2, '系统', 'SYSTEM', 'sys_job_group', '', '', 'N', '0', 'admin', '2025-05-01 22:57:19', '', NULL, '系统分组'),(12, 1, '是', 'Y', 'sys_yes_no', '', 'primary', 'Y', '0', 'admin', '2025-05-01 22:57:19', '', NULL, '系统默认是'),(13, 2, '否', 'N', 'sys_yes_no', '', 'danger', 'N', '0', 'admin', '2025-05-01 22:57:19', '', NULL, '系统默认否'),(14, 1, '通知', '1', 'sys_notice_type', '', 'warning', 'Y', '0', 'admin', '2025-05-01 22:57:19', '', NULL, '通知'),(15, 2, '公告', '2', 'sys_notice_type', '', 'success', 'N', '0', 'admin', '2025-05-01 22:57:19', '', NULL, '公告'),(16, 1, '正常', '0', 'sys_notice_status', '', 'primary', 'Y', '0', 'admin', '2025-05-01 22:57:19', '', NULL, '正常状态'),(17, 2, '关闭', '1', 'sys_notice_status', '', 'danger', 'N', '0', 'admin', '2025-05-01 22:57:19', '', NULL, '关闭状态'),(18, 99, '其他', '0', 'sys_oper_type', '', 'info', 'N', '0', 'admin', '2025-05-01 22:57:19', '', NULL, '其他操作'),(19, 1, '新增', '1', 'sys_oper_type', '', 'info', 'N', '0', 'admin', '2025-05-01 22:57:19', '', NULL, '新增操作'),(20, 2, '修改', '2', 'sys_oper_type', '', 'info', 'N', '0', 'admin', '2025-05-01 22:57:19', '', NULL, '修改操作'),(21, 3, '删除', '3', 'sys_oper_type', '', 'danger', 'N', '0', 'admin', '2025-05-01 22:57:19', '', NULL, '删除操作'),(22, 4, '授权', '4', 'sys_oper_type', '', 'primary', 'N', '0', 'admin', '2025-05-01 22:57:19', '', NULL, '授权操作'),(23, 5, '导出', '5', 'sys_oper_type', '', 'warning', 'N', '0', 'admin', '2025-05-01 22:57:19', '', NULL, '导出操作'),(24, 6, '导入', '6', 'sys_oper_type', '', 'warning', 'N', '0', 'admin', '2025-05-01 22:57:19', '', NULL, '导入操作'),(25, 7, '强退', '7', 'sys_oper_type', '', 'danger', 'N', '0', 'admin', '2025-05-01 22:57:19', '', NULL, '强退操作'),(26, 8, '生成代码', '8', 'sys_oper_type', '', 'warning', 'N', '0', 'admin', '2025-05-01 22:57:19', '', NULL, '生成操作'),(27, 9, '清空数据', '9', 'sys_oper_type', '', 'danger', 'N', '0', 'admin', '2025-05-01 22:57:19', '', NULL, '清空操作'),(28, 1, '成功', '0', 'sys_common_status', '', 'primary', 'N', '0', 'admin', '2025-05-01 22:57:19', '', NULL, '正常状态'),(29, 2, '失败', '1', 'sys_common_status', '', 'danger', 'N', '0', 'admin', '2025-05-01 22:57:19', '', NULL, '停用状态'),(100, 1, '正常经营', '0', 'company_status', NULL, 'default', 'N', '0', 'admin', '2025-05-03 11:38:30', 'admin', '2025-05-03 11:38:44', NULL),(101, 2, '停业整顿', '1', 'company_status', NULL, 'default', 'N', '0', 'admin', '2025-05-03 11:39:43', '', NULL, NULL),(102, 3, '注销', '2', 'company_status', NULL, 'default', 'N', '0', 'admin', '2025-05-03 11:40:01', '', NULL, NULL)
;
UNLOCK TABLES;
COMMIT;
BEGIN;
LOCK TABLES `ry-vue`.`sys_dict_type` WRITE;
DELETE FROM `ry-vue`.`sys_dict_type`;
INSERT INTO `ry-vue`.`sys_dict_type` (`dict_id`,`dict_name`,`dict_type`,`status`,`create_by`,`create_time`,`update_by`,`update_time`,`remark`) VALUES (1, '用户性别', 'sys_user_sex', '0', 'admin', '2025-05-01 22:57:18', '', NULL, '用户性别列表'),(2, '菜单状态', 'sys_show_hide', '0', 'admin', '2025-05-01 22:57:18', '', NULL, '菜单状态列表'),(3, '系统开关', 'sys_normal_disable', '0', 'admin', '2025-05-01 22:57:18', '', NULL, '系统开关列表'),(4, '任务状态', 'sys_job_status', '0', 'admin', '2025-05-01 22:57:18', '', NULL, '任务状态列表'),(5, '任务分组', 'sys_job_group', '0', 'admin', '2025-05-01 22:57:18', '', NULL, '任务分组列表'),(6, '系统是否', 'sys_yes_no', '0', 'admin', '2025-05-01 22:57:18', '', NULL, '系统是否列表'),(7, '通知类型', 'sys_notice_type', '0', 'admin', '2025-05-01 22:57:18', '', NULL, '通知类型列表'),(8, '通知状态', 'sys_notice_status', '0', 'admin', '2025-05-01 22:57:18', '', NULL, '通知状态列表'),(9, '操作类型', 'sys_oper_type', '0', 'admin', '2025-05-01 22:57:18', '', NULL, '操作类型列表'),(10, '系统状态', 'sys_common_status', '0', 'admin', '2025-05-01 22:57:18', '', NULL, '登录状态列表'),(11, '企业运营状态', 'company_status', '0', 'admin', '2025-05-03 11:27:54', 'admin', '2025-05-03 11:35:44', '企业运营状态包括（正常运营/停业整顿/注销）')
;
UNLOCK TABLES;
COMMIT;
BEGIN;
LOCK TABLES `ry-vue`.`sys_job` WRITE;
DELETE FROM `ry-vue`.`sys_job`;
INSERT INTO `ry-vue`.`sys_job` (`job_id`,`job_name`,`job_group`,`invoke_target`,`cron_expression`,`misfire_policy`,`concurrent`,`status`,`create_by`,`create_time`,`update_by`,`update_time`,`remark`) VALUES (1, '系统默认（无参）', 'DEFAULT', 'ryTask.ryNoParams', '0/10 * * * * ?', '3', '1', '1', 'admin', '2025-05-01 22:57:19', '', NULL, ''),(2, '系统默认（有参）', 'DEFAULT', 'ryTask.ryParams(\'ry\')', '0/15 * * * * ?', '3', '1', '1', 'admin', '2025-05-01 22:57:19', '', NULL, ''),(3, '系统默认（多参）', 'DEFAULT', 'ryTask.ryMultipleParams(\'ry\', true, 2000L, 316.50D, 100)', '0/20 * * * * ?', '3', '1', '1', 'admin', '2025-05-01 22:57:19', '', NULL, '')
;
UNLOCK TABLES;
COMMIT;
BEGIN;
LOCK TABLES `ry-vue`.`sys_job_log` WRITE;
DELETE FROM `ry-vue`.`sys_job_log`;
UNLOCK TABLES;
COMMIT;
BEGIN;
LOCK TABLES `ry-vue`.`sys_logininfor` WRITE;
DELETE FROM `ry-vue`.`sys_logininfor`;
INSERT INTO `ry-vue`.`sys_logininfor` (`info_id`,`user_name`,`ipaddr`,`login_location`,`browser`,`os`,`status`,`msg`,`login_time`) VALUES (100, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-05-02 11:33:57'),(101, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-05-02 21:29:48'),(102, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '1', '验证码已失效', '2025-05-03 10:21:32'),(103, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '1', '验证码错误', '2025-05-03 10:21:34'),(104, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-05-03 10:21:42'),(105, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-05-03 10:53:17'),(106, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '1', '验证码已失效', '2025-05-03 12:55:39'),(107, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '1', '验证码错误', '2025-05-03 12:55:40'),(108, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-05-03 12:55:44'),(109, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-05-03 16:27:44'),(110, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '1', '验证码错误', '2025-05-03 22:40:10'),(111, 'admin', '127.0.0.1', '内网IP', 'Chrome 13', 'Windows 10', '0', '登录成功', '2025-05-03 22:40:17')
;
UNLOCK TABLES;
COMMIT;
BEGIN;
LOCK TABLES `ry-vue`.`sys_menu` WRITE;
DELETE FROM `ry-vue`.`sys_menu`;
INSERT INTO `ry-vue`.`sys_menu` (`menu_id`,`menu_name`,`parent_id`,`order_num`,`path`,`component`,`query`,`route_name`,`is_frame`,`is_cache`,`menu_type`,`visible`,`status`,`perms`,`icon`,`create_by`,`create_time`,`update_by`,`update_time`,`remark`) VALUES (1, '系统管理', 0, 1, 'system', NULL, '', '', 1, 0, 'M', '0', '0', '', 'system', 'admin', '2025-05-01 22:57:17', '', NULL, '系统管理目录'),(2, '系统监控', 0, 2, 'monitor', NULL, '', '', 1, 0, 'M', '0', '0', '', 'monitor', 'admin', '2025-05-01 22:57:17', '', NULL, '系统监控目录'),(3, '系统工具', 0, 3, 'tool', NULL, '', '', 1, 0, 'M', '0', '0', '', 'tool', 'admin', '2025-05-01 22:57:17', '', NULL, '系统工具目录'),(4, '若依官网', 0, 4, 'http://ruoyi.vip', NULL, '', '', 0, 0, 'M', '0', '0', '', 'guide', 'admin', '2025-05-01 22:57:17', '', NULL, '若依官网地址'),(100, '用户管理', 1, 1, 'user', 'system/user/index', '', '', 1, 0, 'C', '0', '0', 'system:user:list', 'user', 'admin', '2025-05-01 22:57:17', '', NULL, '用户管理菜单'),(101, '角色管理', 1, 2, 'role', 'system/role/index', '', '', 1, 0, 'C', '0', '0', 'system:role:list', 'peoples', 'admin', '2025-05-01 22:57:17', '', NULL, '角色管理菜单'),(102, '菜单管理', 1, 3, 'menu', 'system/menu/index', '', '', 1, 0, 'M', '0', '0', 'system:menu:list', 'tree-table', 'admin', '2025-05-01 22:57:17', 'admin', '2025-05-03 22:47:13', '菜单管理菜单'),(103, '部门管理', 0, 4, 'dept', 'system/dept/index', '', '', 1, 0, 'C', '0', '0', 'system:dept:list', 'tree', 'admin', '2025-05-01 22:57:17', 'admin', '2025-05-03 23:00:54', '部门管理菜单'),(104, '岗位管理', 1, 5, 'post', 'system/post/index', '', '', 1, 0, 'C', '0', '0', 'system:post:list', 'post', 'admin', '2025-05-01 22:57:17', '', NULL, '岗位管理菜单'),(105, '字典管理', 1, 6, 'dict', 'system/dict/index', '', '', 1, 0, 'C', '0', '0', 'system:dict:list', 'dict', 'admin', '2025-05-01 22:57:17', '', NULL, '字典管理菜单'),(106, '参数设置', 1, 7, 'config', 'system/config/index', '', '', 1, 0, 'C', '0', '0', 'system:config:list', 'edit', 'admin', '2025-05-01 22:57:17', '', NULL, '参数设置菜单'),(107, '通知公告', 1, 8, 'notice', 'system/notice/index', '', '', 1, 0, 'C', '0', '0', 'system:notice:list', 'message', 'admin', '2025-05-01 22:57:17', '', NULL, '通知公告菜单'),(108, '日志管理', 1, 9, 'log', '', '', '', 1, 0, 'M', '0', '0', '', 'log', 'admin', '2025-05-01 22:57:17', '', NULL, '日志管理菜单'),(109, '在线用户', 2, 1, 'online', 'monitor/online/index', '', '', 1, 0, 'C', '0', '0', 'monitor:online:list', 'online', 'admin', '2025-05-01 22:57:17', '', NULL, '在线用户菜单'),(110, '定时任务', 2, 2, 'job', 'monitor/job/index', '', '', 1, 0, 'C', '0', '0', 'monitor:job:list', 'job', 'admin', '2025-05-01 22:57:17', '', NULL, '定时任务菜单'),(111, '数据监控', 2, 3, 'druid', 'monitor/druid/index', '', '', 1, 0, 'C', '0', '0', 'monitor:druid:list', 'druid', 'admin', '2025-05-01 22:57:17', '', NULL, '数据监控菜单'),(112, '服务监控', 2, 4, 'server', 'monitor/server/index', '', '', 1, 0, 'C', '0', '0', 'monitor:server:list', 'server', 'admin', '2025-05-01 22:57:17', '', NULL, '服务监控菜单'),(113, '缓存监控', 2, 5, 'cache', 'monitor/cache/index', '', '', 1, 0, 'C', '0', '0', 'monitor:cache:list', 'redis', 'admin', '2025-05-01 22:57:17', '', NULL, '缓存监控菜单'),(114, '缓存列表', 2, 6, 'cacheList', 'monitor/cache/list', '', '', 1, 0, 'C', '0', '0', 'monitor:cache:list', 'redis-list', 'admin', '2025-05-01 22:57:17', '', NULL, '缓存列表菜单'),(115, '表单构建', 3, 1, 'build', 'tool/build/index', '', '', 1, 0, 'C', '0', '0', 'tool:build:list', 'build', 'admin', '2025-05-01 22:57:17', '', NULL, '表单构建菜单'),(116, '代码生成', 3, 2, 'gen', 'tool/gen/index', '', '', 1, 0, 'C', '0', '0', 'tool:gen:list', 'code', 'admin', '2025-05-01 22:57:17', '', NULL, '代码生成菜单'),(117, '系统接口', 3, 3, 'swagger', 'tool/swagger/index', '', '', 1, 0, 'C', '0', '0', 'tool:swagger:list', 'swagger', 'admin', '2025-05-01 22:57:17', '', NULL, '系统接口菜单'),(500, '操作日志', 108, 1, 'operlog', 'monitor/operlog/index', '', '', 1, 0, 'C', '0', '0', 'monitor:operlog:list', 'form', 'admin', '2025-05-01 22:57:17', '', NULL, '操作日志菜单'),(501, '登录日志', 108, 2, 'logininfor', 'monitor/logininfor/index', '', '', 1, 0, 'C', '0', '0', 'monitor:logininfor:list', 'logininfor', 'admin', '2025-05-01 22:57:17', '', NULL, '登录日志菜单'),(1000, '用户查询', 100, 1, '', '', '', '', 1, 0, 'F', '0', '0', 'system:user:query', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1001, '用户新增', 100, 2, '', '', '', '', 1, 0, 'F', '0', '0', 'system:user:add', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1002, '用户修改', 100, 3, '', '', '', '', 1, 0, 'F', '0', '0', 'system:user:edit', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1003, '用户删除', 100, 4, '', '', '', '', 1, 0, 'F', '0', '0', 'system:user:remove', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1004, '用户导出', 100, 5, '', '', '', '', 1, 0, 'F', '0', '0', 'system:user:export', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1005, '用户导入', 100, 6, '', '', '', '', 1, 0, 'F', '0', '0', 'system:user:import', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1006, '重置密码', 100, 7, '', '', '', '', 1, 0, 'F', '0', '0', 'system:user:resetPwd', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1007, '角色查询', 101, 1, '', '', '', '', 1, 0, 'F', '0', '0', 'system:role:query', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1008, '角色新增', 101, 2, '', '', '', '', 1, 0, 'F', '0', '0', 'system:role:add', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1009, '角色修改', 101, 3, '', '', '', '', 1, 0, 'F', '0', '0', 'system:role:edit', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1010, '角色删除', 101, 4, '', '', '', '', 1, 0, 'F', '0', '0', 'system:role:remove', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1011, '角色导出', 101, 5, '', '', '', '', 1, 0, 'F', '0', '0', 'system:role:export', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1012, '菜单查询', 102, 1, '', '', '', '', 1, 0, 'F', '0', '0', 'system:menu:query', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1013, '菜单新增', 102, 2, '', '', '', '', 1, 0, 'F', '0', '0', 'system:menu:add', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1014, '菜单修改', 102, 3, '', '', '', '', 1, 0, 'F', '0', '0', 'system:menu:edit', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1015, '菜单删除', 102, 4, '', '', '', '', 1, 0, 'F', '0', '0', 'system:menu:remove', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1016, '部门查询', 103, 1, '', '', '', '', 1, 0, 'F', '0', '0', 'system:dept:query', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1017, '部门新增', 103, 2, '', '', '', '', 1, 0, 'F', '0', '0', 'system:dept:add', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1018, '部门修改', 103, 3, '', '', '', '', 1, 0, 'F', '0', '0', 'system:dept:edit', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1019, '部门删除', 103, 4, '', '', '', '', 1, 0, 'F', '0', '0', 'system:dept:remove', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1020, '岗位查询', 104, 1, '', '', '', '', 1, 0, 'F', '0', '0', 'system:post:query', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1021, '岗位新增', 104, 2, '', '', '', '', 1, 0, 'F', '0', '0', 'system:post:add', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1022, '岗位修改', 104, 3, '', '', '', '', 1, 0, 'F', '0', '0', 'system:post:edit', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1023, '岗位删除', 104, 4, '', '', '', '', 1, 0, 'F', '0', '0', 'system:post:remove', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1024, '岗位导出', 104, 5, '', '', '', '', 1, 0, 'F', '0', '0', 'system:post:export', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1025, '字典查询', 105, 1, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:dict:query', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1026, '字典新增', 105, 2, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:dict:add', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1027, '字典修改', 105, 3, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:dict:edit', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1028, '字典删除', 105, 4, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:dict:remove', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1029, '字典导出', 105, 5, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:dict:export', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1030, '参数查询', 106, 1, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:config:query', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1031, '参数新增', 106, 2, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:config:add', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1032, '参数修改', 106, 3, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:config:edit', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1033, '参数删除', 106, 4, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:config:remove', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1034, '参数导出', 106, 5, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:config:export', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1035, '公告查询', 107, 1, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:notice:query', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1036, '公告新增', 107, 2, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:notice:add', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1037, '公告修改', 107, 3, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:notice:edit', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1038, '公告删除', 107, 4, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:notice:remove', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1039, '操作查询', 500, 1, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:operlog:query', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1040, '操作删除', 500, 2, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:operlog:remove', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1041, '日志导出', 500, 3, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:operlog:export', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1042, '登录查询', 501, 1, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:logininfor:query', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1043, '登录删除', 501, 2, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:logininfor:remove', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1044, '日志导出', 501, 3, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:logininfor:export', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1045, '账户解锁', 501, 4, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:logininfor:unlock', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1046, '在线查询', 109, 1, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:online:query', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1047, '批量强退', 109, 2, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:online:batchLogout', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1048, '单条强退', 109, 3, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:online:forceLogout', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1049, '任务查询', 110, 1, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:job:query', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1050, '任务新增', 110, 2, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:job:add', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1051, '任务修改', 110, 3, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:job:edit', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1052, '任务删除', 110, 4, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:job:remove', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1053, '状态修改', 110, 5, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:job:changeStatus', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1054, '任务导出', 110, 6, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:job:export', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1055, '生成查询', 116, 1, '#', '', '', '', 1, 0, 'F', '0', '0', 'tool:gen:query', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1056, '生成修改', 116, 2, '#', '', '', '', 1, 0, 'F', '0', '0', 'tool:gen:edit', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1057, '生成删除', 116, 3, '#', '', '', '', 1, 0, 'F', '0', '0', 'tool:gen:remove', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1058, '导入代码', 116, 4, '#', '', '', '', 1, 0, 'F', '0', '0', 'tool:gen:import', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1059, '预览代码', 116, 5, '#', '', '', '', 1, 0, 'F', '0', '0', 'tool:gen:preview', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(1060, '生成代码', 116, 6, '#', '', '', '', 1, 0, 'F', '0', '0', 'tool:gen:code', '#', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(2000, '公司管理', 0, 5, 'company', NULL, NULL, '', 1, 0, 'M', '0', '0', '', 'build', 'admin', '2025-05-02 21:36:16', 'admin', '2025-05-03 10:22:03', ''),(2043, '公司信息', 2000, 1, 'manage', 'company/manage/index', NULL, '', 1, 0, 'C', '0', '0', 'company:manage:list', '#', 'admin', '2025-05-03 16:53:16', 'admin', '2025-05-03 17:16:13', '公司管理菜单'),(2044, '公司管理查询', 2043, 1, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'company:manage:query', '#', 'admin', '2025-05-03 16:53:16', '', NULL, ''),(2045, '公司管理新增', 2043, 2, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'company:manage:add', '#', 'admin', '2025-05-03 16:53:16', '', NULL, ''),(2046, '公司管理修改', 2043, 3, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'company:manage:edit', '#', 'admin', '2025-05-03 16:53:16', '', NULL, ''),(2047, '公司管理删除', 2043, 4, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'company:manage:remove', '#', 'admin', '2025-05-03 16:53:16', '', NULL, ''),(2048, '公司管理导出', 2043, 5, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'company:manage:export', '#', 'admin', '2025-05-03 16:53:16', '', NULL, '')
;
UNLOCK TABLES;
COMMIT;
BEGIN;
LOCK TABLES `ry-vue`.`sys_notice` WRITE;
DELETE FROM `ry-vue`.`sys_notice`;
INSERT INTO `ry-vue`.`sys_notice` (`notice_id`,`notice_title`,`notice_type`,`notice_content`,`status`,`create_by`,`create_time`,`update_by`,`update_time`,`remark`) VALUES (1, '温馨提醒：2018-07-01 若依新版本发布啦', '2', 0xE696B0E78988E69CACE58685E5AEB9, '0', 'admin', '2025-05-01 22:57:19', '', NULL, '管理员'),(2, '维护通知：2018-07-01 若依系统凌晨维护', '1', 0xE7BBB4E68AA4E58685E5AEB9, '0', 'admin', '2025-05-01 22:57:19', '', NULL, '管理员')
;
UNLOCK TABLES;
COMMIT;
BEGIN;
LOCK TABLES `ry-vue`.`sys_oper_log` WRITE;
DELETE FROM `ry-vue`.`sys_oper_log`;
INSERT INTO `ry-vue`.`sys_oper_log` (`oper_id`,`title`,`business_type`,`method`,`request_method`,`operator_type`,`oper_name`,`dept_name`,`oper_url`,`oper_ip`,`oper_location`,`oper_param`,`json_result`,`status`,`error_msg`,`oper_time`,`cost_time`) VALUES (100, '代码生成', 6, 'com.ruoyi.generator.controller.GenController.importTableSave()', 'POST', 1, 'admin', '研发部门', '/tool/gen/importTable', '127.0.0.1', '内网IP', '{\"tables\":\"employee,equipment_inspection,license_reminder,special_equipment,third_party_person\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-01 22:57:58', 128),(101, '代码生成', 6, 'com.ruoyi.generator.controller.GenController.importTableSave()', 'POST', 1, 'admin', '研发部门', '/tool/gen/importTable', '127.0.0.1', '内网IP', '{\"tables\":\"enterprise,enterprise_license,department\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-01 22:58:07', 75),(102, '代码生成', 2, 'com.ruoyi.generator.controller.GenController.editSave()', 'PUT', 1, 'admin', '研发部门', '/tool/gen', '127.0.0.1', '内网IP', '{\"businessName\":\"department\",\"className\":\"Department\",\"columns\":[{\"capJavaField\":\"Id\",\"columnComment\":\"部门唯一ID（自增主键）\",\"columnId\":35,\"columnName\":\"id\",\"columnType\":\"int\",\"createBy\":\"admin\",\"createTime\":\"2025-05-01 22:58:07\",\"dictType\":\"\",\"edit\":false,\"htmlType\":\"input\",\"increment\":true,\"insert\":true,\"isIncrement\":\"1\",\"isInsert\":\"1\",\"isPk\":\"1\",\"isRequired\":\"0\",\"javaField\":\"id\",\"javaType\":\"Long\",\"list\":false,\"params\":{},\"pk\":true,\"query\":false,\"queryType\":\"EQ\",\"required\":false,\"sort\":1,\"superColumn\":false,\"tableId\":6,\"updateBy\":\"\",\"usableColumn\":false},{\"capJavaField\":\"EnterpriseId\",\"columnComment\":\"所属企业ID（外键指向enterprise.id）\",\"columnId\":36,\"columnName\":\"enterprise_id\",\"columnType\":\"int\",\"createBy\":\"admin\",\"createTime\":\"2025-05-01 22:58:07\",\"dictType\":\"\",\"edit\":true,\"htmlType\":\"input\",\"increment\":false,\"insert\":true,\"isEdit\":\"1\",\"isIncrement\":\"0\",\"isInsert\":\"1\",\"isList\":\"1\",\"isPk\":\"0\",\"isQuery\":\"1\",\"isRequired\":\"1\",\"javaField\":\"enterpriseId\",\"javaType\":\"Long\",\"list\":true,\"params\":{},\"pk\":false,\"query\":true,\"queryType\":\"EQ\",\"required\":true,\"sort\":2,\"superColumn\":false,\"tableId\":6,\"updateBy\":\"\",\"usableColumn\":false},{\"capJavaField\":\"Name\",\"columnComment\":\"部门名称（同一企业下不可重复）\",\"columnId\":37,\"columnName\":\"name\",\"columnType\":\"varchar(50)\",\"createBy\":\"admin\",\"createTime\":\"2025-05-01 22:58:07\",\"dictType\":\"\",\"edit\":true,\"htmlType\":\"input\",\"increment\":false,\"insert\":true,\"isEdit\":\"1\",\"isIncrement\":\"0\",\"isInsert\":\"1\",\"isList\":\"1\",\"isPk\":\"0\",\"isQuery\":\"1\",\"isRequired\":\"1\",\"javaField\":\"name\",\"javaType\":\"String\",\"list\":true,\"params\":{},\"pk\":false,\"query\":true,\"queryType\":\"LIKE\",\"required\":true,\"sort\":3,\"superColumn\":false,\"tableId\":6,\"updateBy\":\"\",\"usableColumn\":false},{\"capJavaField\":\"ManagerId\",\"columnComment\":\"部门负责人ID（占位，后续通过ALTER添加外键）\",\"columnId\":38,\"columnName\":\"manager_id\",\"columnType\":\"int\",\"createBy\":\"admin\",\"createTime\":\"2025-05-01 22:58:07\",\"dictType\":\"\",\"edit\":true,\"htmlType\":\"input\",\"increment\":false,\"insert\":true,\"isEdit\":\"1\",\"isIncrement\":\"0\",\"isInsert\":\"1\",\"isList\":\"1\",\"is', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-01 23:01:10', 51),(103, '菜单管理', 1, 'com.ruoyi.web.controller.system.SysMenuController.add()', 'POST', 1, 'admin', '研发部门', '/system/menu', '127.0.0.1', '内网IP', '{\"children\":[],\"createBy\":\"admin\",\"icon\":\"build\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuName\":\"公司管理\",\"menuType\":\"M\",\"orderNum\":0,\"params\":{},\"parentId\":0,\"path\":\"company\",\"status\":\"0\",\"visible\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-02 21:36:17', 35),(104, '菜单管理', 2, 'com.ruoyi.web.controller.system.SysMenuController.edit()', 'PUT', 1, 'admin', '研发部门', '/system/menu', '127.0.0.1', '内网IP', '{\"children\":[],\"createTime\":\"2025-05-02 21:36:16\",\"icon\":\"build\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuId\":2000,\"menuName\":\"公司管理\",\"menuType\":\"M\",\"orderNum\":5,\"params\":{},\"parentId\":0,\"path\":\"company\",\"perms\":\"\",\"routeName\":\"\",\"status\":\"0\",\"updateBy\":\"admin\",\"visible\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 10:22:03', 20),(105, '字典类型', 1, 'com.ruoyi.web.controller.system.SysDictTypeController.add()', 'POST', 1, 'admin', '研发部门', '/system/dict/type', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"dictName\":\"企业运营状态\",\"dictType\":\"company_status\",\"params\":{},\"remark\":\"企业运营状态包括（正常运营/停业整顿/注销）\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 11:27:54', 25),(106, '字典类型', 9, 'com.ruoyi.web.controller.system.SysDictTypeController.refreshCache()', 'DELETE', 1, 'admin', '研发部门', '/system/dict/type/refreshCache', '127.0.0.1', '内网IP', '', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 11:28:02', 19),(107, '字典类型', 9, 'com.ruoyi.web.controller.system.SysDictTypeController.refreshCache()', 'DELETE', 1, 'admin', '研发部门', '/system/dict/type/refreshCache', '127.0.0.1', '内网IP', '', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 11:28:05', 12),(108, '字典类型', 9, 'com.ruoyi.web.controller.system.SysDictTypeController.refreshCache()', 'DELETE', 1, 'admin', '研发部门', '/system/dict/type/refreshCache', '127.0.0.1', '内网IP', '', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 11:28:06', 10),(109, '字典类型', 9, 'com.ruoyi.web.controller.system.SysDictTypeController.refreshCache()', 'DELETE', 1, 'admin', '研发部门', '/system/dict/type/refreshCache', '127.0.0.1', '内网IP', '', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 11:28:18', 9),(110, '字典类型', 9, 'com.ruoyi.web.controller.system.SysDictTypeController.refreshCache()', 'DELETE', 1, 'admin', '研发部门', '/system/dict/type/refreshCache', '127.0.0.1', '内网IP', '', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 11:29:01', 10),(111, '字典类型', 5, 'com.ruoyi.web.controller.system.SysDictTypeController.export()', 'POST', 1, 'admin', '研发部门', '/system/dict/type/export', '127.0.0.1', '内网IP', '{\"pageSize\":\"10\",\"pageNum\":\"1\"}', NULL, 0, NULL, '2025-05-03 11:31:03', 969),(112, '字典类型', 2, 'com.ruoyi.web.controller.system.SysDictTypeController.edit()', 'PUT', 1, 'admin', '研发部门', '/system/dict/type', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-05-03 11:27:54\",\"dictId\":11,\"dictName\":\"企业运营状态\",\"dictType\":\"company_status\",\"params\":{},\"remark\":\"企业运营状态包括（正常运营/停业整顿/注销）\",\"status\":\"0\",\"updateBy\":\"admin\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 11:35:44', 61),(113, '字典数据', 1, 'com.ruoyi.web.controller.system.SysDictDataController.add()', 'POST', 1, 'admin', '研发部门', '/system/dict/data', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"default\":false,\"dictLabel\":\"正常经营\",\"dictSort\":0,\"dictType\":\"company_status\",\"dictValue\":\"0\",\"listClass\":\"default\",\"params\":{},\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 11:38:30', 20),(114, '字典数据', 2, 'com.ruoyi.web.controller.system.SysDictDataController.edit()', 'PUT', 1, 'admin', '研发部门', '/system/dict/data', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-05-03 11:38:30\",\"default\":false,\"dictCode\":100,\"dictLabel\":\"正常经营\",\"dictSort\":1,\"dictType\":\"company_status\",\"dictValue\":\"0\",\"isDefault\":\"N\",\"listClass\":\"default\",\"params\":{},\"status\":\"0\",\"updateBy\":\"admin\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 11:38:44', 14),(115, '字典数据', 1, 'com.ruoyi.web.controller.system.SysDictDataController.add()', 'POST', 1, 'admin', '研发部门', '/system/dict/data', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"default\":false,\"dictLabel\":\"停业整顿\",\"dictSort\":2,\"dictType\":\"company_status\",\"dictValue\":\"1\",\"listClass\":\"default\",\"params\":{},\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 11:39:43', 14),(116, '字典数据', 1, 'com.ruoyi.web.controller.system.SysDictDataController.add()', 'POST', 1, 'admin', '研发部门', '/system/dict/data', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"default\":false,\"dictLabel\":\"注销\",\"dictSort\":3,\"dictType\":\"company_status\",\"dictValue\":\"2\",\"listClass\":\"default\",\"params\":{},\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 11:40:01', 30),(117, '代码生成', 2, 'com.ruoyi.generator.controller.GenController.synchDb()', 'GET', 1, 'admin', '研发部门', '/tool/gen/synchDb/enterprise', '127.0.0.1', '内网IP', '{}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 12:55:58', 93),(118, '代码生成', 2, 'com.ruoyi.generator.controller.GenController.editSave()', 'PUT', 1, 'admin', '研发部门', '/tool/gen', '127.0.0.1', '内网IP', '{\"businessName\":\"company\",\"className\":\"Enterprise\",\"columns\":[{\"capJavaField\":\"Id\",\"columnComment\":\"企业唯一ID（自增主键）\",\"columnId\":40,\"columnName\":\"id\",\"columnType\":\"int\",\"createBy\":\"admin\",\"createTime\":\"2025-05-01 22:58:07\",\"dictType\":\"\",\"edit\":false,\"htmlType\":\"input\",\"increment\":true,\"insert\":false,\"isIncrement\":\"1\",\"isInsert\":\"0\",\"isPk\":\"1\",\"isRequired\":\"0\",\"javaField\":\"id\",\"javaType\":\"Long\",\"list\":false,\"params\":{},\"pk\":true,\"query\":false,\"queryType\":\"EQ\",\"required\":false,\"sort\":1,\"superColumn\":false,\"tableId\":7,\"updateBy\":\"\",\"updateTime\":\"2025-05-03 12:55:58\",\"usableColumn\":false},{\"capJavaField\":\"Name\",\"columnComment\":\"企业全称（唯一约束）\",\"columnId\":41,\"columnName\":\"name\",\"columnType\":\"varchar(100)\",\"createBy\":\"admin\",\"createTime\":\"2025-05-01 22:58:07\",\"dictType\":\"\",\"edit\":true,\"htmlType\":\"input\",\"increment\":false,\"insert\":true,\"isEdit\":\"1\",\"isIncrement\":\"0\",\"isInsert\":\"1\",\"isList\":\"1\",\"isPk\":\"0\",\"isQuery\":\"1\",\"isRequired\":\"1\",\"javaField\":\"name\",\"javaType\":\"String\",\"list\":true,\"params\":{},\"pk\":false,\"query\":true,\"queryType\":\"LIKE\",\"required\":true,\"sort\":2,\"superColumn\":false,\"tableId\":7,\"updateBy\":\"\",\"updateTime\":\"2025-05-03 12:55:58\",\"usableColumn\":false},{\"capJavaField\":\"Address\",\"columnComment\":\"企业注册地址（省市区+详细地址）\",\"columnId\":42,\"columnName\":\"address\",\"columnType\":\"varchar(200)\",\"createBy\":\"admin\",\"createTime\":\"2025-05-01 22:58:07\",\"dictType\":\"\",\"edit\":true,\"htmlType\":\"input\",\"increment\":false,\"insert\":true,\"isEdit\":\"1\",\"isIncrement\":\"0\",\"isInsert\":\"1\",\"isList\":\"1\",\"isPk\":\"0\",\"isQuery\":\"1\",\"isRequired\":\"1\",\"javaField\":\"address\",\"javaType\":\"String\",\"list\":true,\"params\":{},\"pk\":false,\"query\":true,\"queryType\":\"EQ\",\"required\":true,\"sort\":3,\"superColumn\":false,\"tableId\":7,\"updateBy\":\"\",\"updateTime\":\"2025-05-03 12:55:58\",\"usableColumn\":false},{\"capJavaField\":\"Legal person\",\"columnComment\":\"法人姓名\",\"columnId\":55,\"columnName\":\"legal person\",\"columnType\":\"varchar(100)\",\"createBy\":\"\",\"createTime\":\"2025-05-03 12:55:58\",\"dictType\":\"\",\"edit\":false,\"htmlType\":\"input\",\"increment\":false,\"i', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 13:03:00', 58),(119, '代码生成', 8, 'com.ruoyi.generator.controller.GenController.batchGenCode()', 'GET', 1, 'admin', '研发部门', '/tool/gen/batchGenCode', '127.0.0.1', '内网IP', '{\"tables\":\"enterprise\"}', NULL, 0, NULL, '2025-05-03 13:03:31', 63),(120, '代码生成', 2, 'com.ruoyi.generator.controller.GenController.editSave()', 'PUT', 1, 'admin', '研发部门', '/tool/gen', '127.0.0.1', '内网IP', '{\"businessName\":\"manage\",\"className\":\"Enterprise\",\"columns\":[{\"capJavaField\":\"Id\",\"columnComment\":\"企业唯一ID（自增主键）\",\"columnId\":40,\"columnName\":\"id\",\"columnType\":\"int\",\"createBy\":\"admin\",\"createTime\":\"2025-05-01 22:58:07\",\"dictType\":\"\",\"edit\":false,\"htmlType\":\"input\",\"increment\":true,\"insert\":false,\"isIncrement\":\"1\",\"isInsert\":\"0\",\"isPk\":\"1\",\"isRequired\":\"0\",\"javaField\":\"id\",\"javaType\":\"Long\",\"list\":false,\"params\":{},\"pk\":true,\"query\":false,\"queryType\":\"EQ\",\"required\":false,\"sort\":1,\"superColumn\":false,\"tableId\":7,\"updateBy\":\"\",\"updateTime\":\"2025-05-03 13:03:00\",\"usableColumn\":false},{\"capJavaField\":\"Name\",\"columnComment\":\"企业全称（唯一约束）\",\"columnId\":41,\"columnName\":\"name\",\"columnType\":\"varchar(100)\",\"createBy\":\"admin\",\"createTime\":\"2025-05-01 22:58:07\",\"dictType\":\"\",\"edit\":true,\"htmlType\":\"input\",\"increment\":false,\"insert\":true,\"isEdit\":\"1\",\"isIncrement\":\"0\",\"isInsert\":\"1\",\"isList\":\"1\",\"isPk\":\"0\",\"isQuery\":\"1\",\"isRequired\":\"1\",\"javaField\":\"name\",\"javaType\":\"String\",\"list\":true,\"params\":{},\"pk\":false,\"query\":true,\"queryType\":\"LIKE\",\"required\":true,\"sort\":2,\"superColumn\":false,\"tableId\":7,\"updateBy\":\"\",\"updateTime\":\"2025-05-03 13:03:00\",\"usableColumn\":false},{\"capJavaField\":\"Address\",\"columnComment\":\"企业注册地址（省市区+详细地址）\",\"columnId\":42,\"columnName\":\"address\",\"columnType\":\"varchar(200)\",\"createBy\":\"admin\",\"createTime\":\"2025-05-01 22:58:07\",\"dictType\":\"\",\"edit\":true,\"htmlType\":\"input\",\"increment\":false,\"insert\":true,\"isEdit\":\"1\",\"isIncrement\":\"0\",\"isInsert\":\"1\",\"isList\":\"1\",\"isPk\":\"0\",\"isQuery\":\"1\",\"isRequired\":\"1\",\"javaField\":\"address\",\"javaType\":\"String\",\"list\":true,\"params\":{},\"pk\":false,\"query\":true,\"queryType\":\"EQ\",\"required\":true,\"sort\":3,\"superColumn\":false,\"tableId\":7,\"updateBy\":\"\",\"updateTime\":\"2025-05-03 13:03:00\",\"usableColumn\":false},{\"capJavaField\":\"Legal person\",\"columnComment\":\"法人姓名\",\"columnId\":55,\"columnName\":\"legal person\",\"columnType\":\"varchar(100)\",\"createBy\":\"\",\"createTime\":\"2025-05-03 12:55:58\",\"dictType\":\"\",\"edit\":false,\"htmlType\":\"input\",\"increment\":false,\"in', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 13:09:30', 39),(121, '代码生成', 8, 'com.ruoyi.generator.controller.GenController.batchGenCode()', 'GET', 1, 'admin', '研发部门', '/tool/gen/batchGenCode', '127.0.0.1', '内网IP', '{\"tables\":\"enterprise\"}', NULL, 0, NULL, '2025-05-03 13:09:33', 38),(122, '代码生成', 2, 'com.ruoyi.generator.controller.GenController.synchDb()', 'GET', 1, 'admin', '研发部门', '/tool/gen/synchDb/enterprise', '127.0.0.1', '内网IP', '{}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 16:28:37', 86),(123, '代码生成', 2, 'com.ruoyi.generator.controller.GenController.editSave()', 'PUT', 1, 'admin', '研发部门', '/tool/gen', '127.0.0.1', '内网IP', '{\"businessName\":\"manage\",\"className\":\"Enterprise\",\"columns\":[{\"capJavaField\":\"Id\",\"columnComment\":\"企业唯一ID（自增主键）\",\"columnId\":40,\"columnName\":\"id\",\"columnType\":\"int\",\"createBy\":\"admin\",\"createTime\":\"2025-05-01 22:58:07\",\"dictType\":\"\",\"edit\":false,\"htmlType\":\"input\",\"increment\":true,\"insert\":true,\"isIncrement\":\"1\",\"isInsert\":\"1\",\"isPk\":\"1\",\"isRequired\":\"0\",\"javaField\":\"id\",\"javaType\":\"Long\",\"list\":false,\"params\":{},\"pk\":true,\"query\":false,\"queryType\":\"EQ\",\"required\":false,\"sort\":1,\"superColumn\":false,\"tableId\":7,\"updateBy\":\"\",\"updateTime\":\"2025-05-03 16:28:37\",\"usableColumn\":false},{\"capJavaField\":\"Name\",\"columnComment\":\"企业全称（唯一约束）\",\"columnId\":41,\"columnName\":\"name\",\"columnType\":\"varchar(100)\",\"createBy\":\"admin\",\"createTime\":\"2025-05-01 22:58:07\",\"dictType\":\"\",\"edit\":true,\"htmlType\":\"input\",\"increment\":false,\"insert\":true,\"isEdit\":\"1\",\"isIncrement\":\"0\",\"isInsert\":\"1\",\"isList\":\"1\",\"isPk\":\"0\",\"isQuery\":\"1\",\"isRequired\":\"1\",\"javaField\":\"name\",\"javaType\":\"String\",\"list\":true,\"params\":{},\"pk\":false,\"query\":true,\"queryType\":\"LIKE\",\"required\":true,\"sort\":2,\"superColumn\":false,\"tableId\":7,\"updateBy\":\"\",\"updateTime\":\"2025-05-03 16:28:37\",\"usableColumn\":false},{\"capJavaField\":\"Address\",\"columnComment\":\"企业注册地址（省市区+详细地址）\",\"columnId\":42,\"columnName\":\"address\",\"columnType\":\"varchar(200)\",\"createBy\":\"admin\",\"createTime\":\"2025-05-01 22:58:07\",\"dictType\":\"\",\"edit\":true,\"htmlType\":\"input\",\"increment\":false,\"insert\":true,\"isEdit\":\"1\",\"isIncrement\":\"0\",\"isInsert\":\"1\",\"isList\":\"1\",\"isPk\":\"0\",\"isQuery\":\"1\",\"isRequired\":\"1\",\"javaField\":\"address\",\"javaType\":\"String\",\"list\":true,\"params\":{},\"pk\":false,\"query\":true,\"queryType\":\"EQ\",\"required\":true,\"sort\":3,\"superColumn\":false,\"tableId\":7,\"updateBy\":\"\",\"updateTime\":\"2025-05-03 16:28:37\",\"usableColumn\":false},{\"capJavaField\":\"Legal person\",\"columnComment\":\"法人姓名\",\"columnId\":55,\"columnName\":\"legal person\",\"columnType\":\"varchar(100)\",\"createBy\":\"\",\"createTime\":\"2025-05-03 12:55:58\",\"dictType\":\"\",\"edit\":true,\"htmlType\":\"input\",\"increment\":false,\"inse', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 16:28:50', 58),(124, '代码生成', 8, 'com.ruoyi.generator.controller.GenController.batchGenCode()', 'GET', 1, 'admin', '研发部门', '/tool/gen/batchGenCode', '127.0.0.1', '内网IP', '{\"tables\":\"enterprise\"}', NULL, 0, NULL, '2025-05-03 16:28:52', 61),(125, '代码生成', 2, 'com.ruoyi.generator.controller.GenController.synchDb()', 'GET', 1, 'admin', '研发部门', '/tool/gen/synchDb/enterprise', '127.0.0.1', '内网IP', '{}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 16:37:43', 148),(126, '代码生成', 2, 'com.ruoyi.generator.controller.GenController.editSave()', 'PUT', 1, 'admin', '研发部门', '/tool/gen', '127.0.0.1', '内网IP', '{\"businessName\":\"manage\",\"className\":\"Enterprise\",\"columns\":[{\"capJavaField\":\"Id\",\"columnComment\":\"企业唯一ID（自增主键）\",\"columnId\":40,\"columnName\":\"id\",\"columnType\":\"int\",\"createBy\":\"admin\",\"createTime\":\"2025-05-01 22:58:07\",\"dictType\":\"\",\"edit\":false,\"htmlType\":\"input\",\"increment\":true,\"insert\":true,\"isIncrement\":\"1\",\"isInsert\":\"1\",\"isPk\":\"1\",\"isRequired\":\"0\",\"javaField\":\"id\",\"javaType\":\"Long\",\"list\":false,\"params\":{},\"pk\":true,\"query\":false,\"queryType\":\"EQ\",\"required\":false,\"sort\":1,\"superColumn\":false,\"tableId\":7,\"updateBy\":\"\",\"updateTime\":\"2025-05-03 16:37:43\",\"usableColumn\":false},{\"capJavaField\":\"Name\",\"columnComment\":\"企业全称（唯一约束）\",\"columnId\":41,\"columnName\":\"name\",\"columnType\":\"varchar(100)\",\"createBy\":\"admin\",\"createTime\":\"2025-05-01 22:58:07\",\"dictType\":\"\",\"edit\":true,\"htmlType\":\"input\",\"increment\":false,\"insert\":true,\"isEdit\":\"1\",\"isIncrement\":\"0\",\"isInsert\":\"1\",\"isList\":\"1\",\"isPk\":\"0\",\"isQuery\":\"1\",\"isRequired\":\"1\",\"javaField\":\"name\",\"javaType\":\"String\",\"list\":true,\"params\":{},\"pk\":false,\"query\":true,\"queryType\":\"LIKE\",\"required\":true,\"sort\":2,\"superColumn\":false,\"tableId\":7,\"updateBy\":\"\",\"updateTime\":\"2025-05-03 16:37:43\",\"usableColumn\":false},{\"capJavaField\":\"Address\",\"columnComment\":\"企业注册地址（省市区+详细地址）\",\"columnId\":42,\"columnName\":\"address\",\"columnType\":\"varchar(200)\",\"createBy\":\"admin\",\"createTime\":\"2025-05-01 22:58:07\",\"dictType\":\"\",\"edit\":true,\"htmlType\":\"input\",\"increment\":false,\"insert\":true,\"isEdit\":\"1\",\"isIncrement\":\"0\",\"isInsert\":\"1\",\"isList\":\"1\",\"isPk\":\"0\",\"isQuery\":\"1\",\"isRequired\":\"1\",\"javaField\":\"address\",\"javaType\":\"String\",\"list\":true,\"params\":{},\"pk\":false,\"query\":true,\"queryType\":\"EQ\",\"required\":true,\"sort\":3,\"superColumn\":false,\"tableId\":7,\"updateBy\":\"\",\"updateTime\":\"2025-05-03 16:37:43\",\"usableColumn\":false},{\"capJavaField\":\"LegalPerson\",\"columnComment\":\"法人姓名\",\"columnId\":58,\"columnName\":\"legal_person\",\"columnType\":\"varchar(100)\",\"createBy\":\"\",\"createTime\":\"2025-05-03 16:37:43\",\"dictType\":\"\",\"edit\":true,\"htmlType\":\"input\",\"increment\":false,\"inser', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 16:37:57', 59),(127, '代码生成', 8, 'com.ruoyi.generator.controller.GenController.batchGenCode()', 'GET', 1, 'admin', '研发部门', '/tool/gen/batchGenCode', '127.0.0.1', '内网IP', '{\"tables\":\"enterprise\"}', NULL, 0, NULL, '2025-05-03 16:37:59', 268),(128, '菜单管理', 3, 'com.ruoyi.web.controller.system.SysMenuController.remove()', 'DELETE', 1, 'admin', '研发部门', '/system/menu/2007', '127.0.0.1', '内网IP', '2007', '{\"msg\":\"存在子菜单,不允许删除\",\"code\":601}', 0, NULL, '2025-05-03 16:43:01', 14),(129, '菜单管理', 3, 'com.ruoyi.web.controller.system.SysMenuController.remove()', 'DELETE', 1, 'admin', '研发部门', '/system/menu/2008', '127.0.0.1', '内网IP', '2008', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 16:43:11', 48),(130, '菜单管理', 3, 'com.ruoyi.web.controller.system.SysMenuController.remove()', 'DELETE', 1, 'admin', '研发部门', '/system/menu/2007', '127.0.0.1', '内网IP', '2007', '{\"msg\":\"存在子菜单,不允许删除\",\"code\":601}', 0, NULL, '2025-05-03 16:43:21', 5),(131, '菜单管理', 3, 'com.ruoyi.web.controller.system.SysMenuController.remove()', 'DELETE', 1, 'admin', '研发部门', '/system/menu/2009', '127.0.0.1', '内网IP', '2009', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 16:43:28', 20),(132, '菜单管理', 3, 'com.ruoyi.web.controller.system.SysMenuController.remove()', 'DELETE', 1, 'admin', '研发部门', '/system/menu/2010', '127.0.0.1', '内网IP', '2010', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 16:43:30', 20),(133, '菜单管理', 3, 'com.ruoyi.web.controller.system.SysMenuController.remove()', 'DELETE', 1, 'admin', '研发部门', '/system/menu/2011', '127.0.0.1', '内网IP', '2011', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 16:43:31', 15),(134, '菜单管理', 3, 'com.ruoyi.web.controller.system.SysMenuController.remove()', 'DELETE', 1, 'admin', '研发部门', '/system/menu/2012', '127.0.0.1', '内网IP', '2012', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 16:43:33', 20),(135, '菜单管理', 3, 'com.ruoyi.web.controller.system.SysMenuController.remove()', 'DELETE', 1, 'admin', '研发部门', '/system/menu/2007', '127.0.0.1', '内网IP', '2007', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 16:43:36', 17),(136, '菜单管理', 3, 'com.ruoyi.web.controller.system.SysMenuController.remove()', 'DELETE', 1, 'admin', '研发部门', '/system/menu/2016', '127.0.0.1', '内网IP', '2016', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 16:43:41', 29),(137, '菜单管理', 3, 'com.ruoyi.web.controller.system.SysMenuController.remove()', 'DELETE', 1, 'admin', '研发部门', '/system/menu/2017', '127.0.0.1', '内网IP', '2017', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 16:43:42', 16),(138, '菜单管理', 3, 'com.ruoyi.web.controller.system.SysMenuController.remove()', 'DELETE', 1, 'admin', '研发部门', '/system/menu/2018', '127.0.0.1', '内网IP', '2018', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 16:43:44', 15),(139, '菜单管理', 3, 'com.ruoyi.web.controller.system.SysMenuController.remove()', 'DELETE', 1, 'admin', '研发部门', '/system/menu/2015', '127.0.0.1', '内网IP', '2015', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 16:43:46', 14),(140, '菜单管理', 3, 'com.ruoyi.web.controller.system.SysMenuController.remove()', 'DELETE', 1, 'admin', '研发部门', '/system/menu/2014', '127.0.0.1', '内网IP', '2014', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 16:43:49', 20),(141, '菜单管理', 3, 'com.ruoyi.web.controller.system.SysMenuController.remove()', 'DELETE', 1, 'admin', '研发部门', '/system/menu/2013', '127.0.0.1', '内网IP', '2013', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 16:43:51', 20),(142, '菜单管理', 3, 'com.ruoyi.web.controller.system.SysMenuController.remove()', 'DELETE', 1, 'admin', '研发部门', '/system/menu/2021', '127.0.0.1', '内网IP', '2021', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 16:43:54', 13),(143, '菜单管理', 3, 'com.ruoyi.web.controller.system.SysMenuController.remove()', 'DELETE', 1, 'admin', '研发部门', '/system/menu/2022', '127.0.0.1', '内网IP', '2022', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 16:43:55', 15),(144, '菜单管理', 3, 'com.ruoyi.web.controller.system.SysMenuController.remove()', 'DELETE', 1, 'admin', '研发部门', '/system/menu/2023', '127.0.0.1', '内网IP', '2023', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 16:43:57', 18),(145, '菜单管理', 3, 'com.ruoyi.web.controller.system.SysMenuController.remove()', 'DELETE', 1, 'admin', '研发部门', '/system/menu/2020', '127.0.0.1', '内网IP', '2020', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 16:44:00', 14),(146, '菜单管理', 3, 'com.ruoyi.web.controller.system.SysMenuController.remove()', 'DELETE', 1, 'admin', '研发部门', '/system/menu/2024', '127.0.0.1', '内网IP', '2024', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 16:44:01', 16),(147, '菜单管理', 3, 'com.ruoyi.web.controller.system.SysMenuController.remove()', 'DELETE', 1, 'admin', '研发部门', '/system/menu/2025', '127.0.0.1', '内网IP', '2025', '{\"msg\":\"存在子菜单,不允许删除\",\"code\":601}', 0, NULL, '2025-05-03 16:44:04', 5),(148, '菜单管理', 3, 'com.ruoyi.web.controller.system.SysMenuController.remove()', 'DELETE', 1, 'admin', '研发部门', '/system/menu/2019', '127.0.0.1', '内网IP', '2019', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 16:44:06', 15),(149, '菜单管理', 3, 'com.ruoyi.web.controller.system.SysMenuController.remove()', 'DELETE', 1, 'admin', '研发部门', '/system/menu/2026', '127.0.0.1', '内网IP', '2026', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 16:44:13', 18),(150, '菜单管理', 3, 'com.ruoyi.web.controller.system.SysMenuController.remove()', 'DELETE', 1, 'admin', '研发部门', '/system/menu/2027', '127.0.0.1', '内网IP', '2027', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 16:44:15', 76),(151, '菜单管理', 3, 'com.ruoyi.web.controller.system.SysMenuController.remove()', 'DELETE', 1, 'admin', '研发部门', '/system/menu/2028', '127.0.0.1', '内网IP', '2028', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 16:44:16', 25),(152, '菜单管理', 3, 'com.ruoyi.web.controller.system.SysMenuController.remove()', 'DELETE', 1, 'admin', '研发部门', '/system/menu/2029', '127.0.0.1', '内网IP', '2029', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 16:44:18', 14),(153, '菜单管理', 3, 'com.ruoyi.web.controller.system.SysMenuController.remove()', 'DELETE', 1, 'admin', '研发部门', '/system/menu/2030', '127.0.0.1', '内网IP', '2030', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 16:44:20', 26),(154, '菜单管理', 3, 'com.ruoyi.web.controller.system.SysMenuController.remove()', 'DELETE', 1, 'admin', '研发部门', '/system/menu/2025', '127.0.0.1', '内网IP', '2025', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 16:44:22', 17),(155, '菜单管理', 3, 'com.ruoyi.web.controller.system.SysMenuController.remove()', 'DELETE', 1, 'admin', '研发部门', '/system/menu/2033', '127.0.0.1', '内网IP', '2033', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 16:44:25', 14),(156, '菜单管理', 3, 'com.ruoyi.web.controller.system.SysMenuController.remove()', 'DELETE', 1, 'admin', '研发部门', '/system/menu/2034', '127.0.0.1', '内网IP', '2034', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 16:44:26', 17),(157, '菜单管理', 3, 'com.ruoyi.web.controller.system.SysMenuController.remove()', 'DELETE', 1, 'admin', '研发部门', '/system/menu/2035', '127.0.0.1', '内网IP', '2035', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 16:44:28', 12),(158, '菜单管理', 3, 'com.ruoyi.web.controller.system.SysMenuController.remove()', 'DELETE', 1, 'admin', '研发部门', '/system/menu/2036', '127.0.0.1', '内网IP', '2036', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 16:44:29', 22),(159, '菜单管理', 3, 'com.ruoyi.web.controller.system.SysMenuController.remove()', 'DELETE', 1, 'admin', '研发部门', '/system/menu/2032', '127.0.0.1', '内网IP', '2032', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 16:44:31', 20),(160, '菜单管理', 3, 'com.ruoyi.web.controller.system.SysMenuController.remove()', 'DELETE', 1, 'admin', '研发部门', '/system/menu/2031', '127.0.0.1', '内网IP', '2031', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 16:44:37', 37),(161, '菜单管理', 2, 'com.ruoyi.web.controller.system.SysMenuController.edit()', 'PUT', 1, 'admin', '研发部门', '/system/menu', '127.0.0.1', '内网IP', '{\"children\":[],\"component\":\"company/manage/index\",\"createTime\":\"2025-05-03 16:16:12\",\"icon\":\"#\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuId\":2001,\"menuName\":\"公司管理\",\"menuType\":\"C\",\"orderNum\":1,\"params\":{},\"parentId\":2000,\"path\":\"manage\",\"perms\":\"company:manage:list\",\"routeName\":\"\",\"status\":\"0\",\"updateBy\":\"admin\",\"visible\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 16:45:40', 30),(162, '代码生成', 2, 'com.ruoyi.generator.controller.GenController.editSave()', 'PUT', 1, 'admin', '研发部门', '/tool/gen', '127.0.0.1', '内网IP', '{\"businessName\":\"manage\",\"className\":\"Enterprise\",\"columns\":[{\"capJavaField\":\"Id\",\"columnComment\":\"企业ID\",\"columnId\":40,\"columnName\":\"id\",\"columnType\":\"int\",\"createBy\":\"admin\",\"createTime\":\"2025-05-01 22:58:07\",\"dictType\":\"\",\"edit\":false,\"htmlType\":\"input\",\"increment\":true,\"insert\":false,\"isIncrement\":\"1\",\"isInsert\":\"0\",\"isPk\":\"1\",\"isRequired\":\"0\",\"javaField\":\"id\",\"javaType\":\"Long\",\"list\":false,\"params\":{},\"pk\":true,\"query\":false,\"queryType\":\"EQ\",\"required\":false,\"sort\":1,\"superColumn\":false,\"tableId\":7,\"updateBy\":\"\",\"updateTime\":\"2025-05-03 16:37:57\",\"usableColumn\":false},{\"capJavaField\":\"Name\",\"columnComment\":\"企业名称\",\"columnId\":41,\"columnName\":\"name\",\"columnType\":\"varchar(100)\",\"createBy\":\"admin\",\"createTime\":\"2025-05-01 22:58:07\",\"dictType\":\"\",\"edit\":true,\"htmlType\":\"input\",\"increment\":false,\"insert\":true,\"isEdit\":\"1\",\"isIncrement\":\"0\",\"isInsert\":\"1\",\"isList\":\"1\",\"isPk\":\"0\",\"isQuery\":\"1\",\"isRequired\":\"1\",\"javaField\":\"name\",\"javaType\":\"String\",\"list\":true,\"params\":{},\"pk\":false,\"query\":true,\"queryType\":\"LIKE\",\"required\":true,\"sort\":2,\"superColumn\":false,\"tableId\":7,\"updateBy\":\"\",\"updateTime\":\"2025-05-03 16:37:57\",\"usableColumn\":false},{\"capJavaField\":\"Address\",\"columnComment\":\"企业注册地址\",\"columnId\":42,\"columnName\":\"address\",\"columnType\":\"varchar(200)\",\"createBy\":\"admin\",\"createTime\":\"2025-05-01 22:58:07\",\"dictType\":\"\",\"edit\":true,\"htmlType\":\"input\",\"increment\":false,\"insert\":true,\"isEdit\":\"1\",\"isIncrement\":\"0\",\"isInsert\":\"1\",\"isList\":\"1\",\"isPk\":\"0\",\"isQuery\":\"1\",\"isRequired\":\"1\",\"javaField\":\"address\",\"javaType\":\"String\",\"list\":true,\"params\":{},\"pk\":false,\"query\":true,\"queryType\":\"EQ\",\"required\":true,\"sort\":3,\"superColumn\":false,\"tableId\":7,\"updateBy\":\"\",\"updateTime\":\"2025-05-03 16:37:57\",\"usableColumn\":false},{\"capJavaField\":\"LegalPerson\",\"columnComment\":\"法人姓名\",\"columnId\":58,\"columnName\":\"legal_person\",\"columnType\":\"varchar(100)\",\"createBy\":\"\",\"createTime\":\"2025-05-03 16:37:43\",\"dictType\":\"\",\"edit\":true,\"htmlType\":\"input\",\"increment\":false,\"insert\":true,\"isEdit\":\"1\",\"i', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 16:50:16', 67),(163, '代码生成', 2, 'com.ruoyi.generator.controller.GenController.synchDb()', 'GET', 1, 'admin', '研发部门', '/tool/gen/synchDb/enterprise', '127.0.0.1', '内网IP', '{}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 16:50:20', 51),(164, '代码生成', 8, 'com.ruoyi.generator.controller.GenController.batchGenCode()', 'GET', 1, 'admin', '研发部门', '/tool/gen/batchGenCode', '127.0.0.1', '内网IP', '{\"tables\":\"enterprise\"}', NULL, 0, NULL, '2025-05-03 16:50:22', 241),(165, '代码生成', 2, 'com.ruoyi.generator.controller.GenController.synchDb()', 'GET', 1, 'admin', '研发部门', '/tool/gen/synchDb/department', '127.0.0.1', '内网IP', '{}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 16:55:45', 68),(166, '角色管理', 1, 'com.ruoyi.web.controller.system.SysRoleController.add()', 'POST', 1, 'admin', '研发部门', '/system/role', '127.0.0.1', '内网IP', '{\"admin\":false,\"createBy\":\"admin\",\"deptCheckStrictly\":true,\"deptIds\":[],\"flag\":false,\"menuCheckStrictly\":true,\"menuIds\":[1,100,1000,1001,1002,1003,1004,1005,1006,101,1007,1008,1009,1010,1011,102,1012,1013,1014,1015,103,1016,1017,1018,1019,104,1020,1021,1022,1023,1024,105,1025,1026,1027,1028,1029,106,1030,1031,1032,1033,1034,107,1035,1036,1037,1038,108,500,1039,1040,1041,501,1042,1043,1044,1045,2,109,1046,1047,1048,110,1049,1050,1051,1052,1053,1054,111,112,113,114,3,115,116,1055,1056,1057,1058,1059,1060,117,4,2000,2043,2044,2045,2046,2047,2048],\"params\":{},\"roleId\":100,\"roleKey\":\"c_admin\",\"roleName\":\"company_admin\",\"roleSort\":2,\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 17:02:09', 41),(167, '角色管理', 2, 'com.ruoyi.web.controller.system.SysRoleController.edit()', 'PUT', 1, 'admin', '研发部门', '/system/role', '127.0.0.1', '内网IP', '{\"admin\":false,\"createTime\":\"2025-05-01 22:57:17\",\"dataScope\":\"2\",\"delFlag\":\"0\",\"deptCheckStrictly\":true,\"flag\":false,\"menuCheckStrictly\":true,\"menuIds\":[1,100,1000,1001,1002,1003,1004,1005,1006,101,1007,1008,1009,1010,1011,102,1012,1013,1014,1015,103,1016,1017,1018,1019,104,1020,1021,1022,1023,1024,105,1025,1026,1027,1028,1029,106,1030,1031,1032,1033,1034,107,1035,1036,1037,1038,108,500,1039,1040,1041,501,1042,1043,1044,1045,2,109,1046,1047,1048,110,1049,1050,1051,1052,1053,1054,111,112,113,114,3,115,116,1055,1056,1057,1058,1059,1060,117,4],\"params\":{},\"remark\":\"普通角色\",\"roleId\":2,\"roleKey\":\"common\",\"roleName\":\"普通角色\",\"roleSort\":3,\"status\":\"0\",\"updateBy\":\"admin\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 17:02:25', 45),(168, '角色管理', 5, 'com.ruoyi.web.controller.system.SysRoleController.export()', 'POST', 1, 'admin', '研发部门', '/system/role/export', '127.0.0.1', '内网IP', '{\"pageSize\":\"10\",\"pageNum\":\"1\"}', NULL, 0, NULL, '2025-05-03 17:02:34', 976),(169, '代码生成', 2, 'com.ruoyi.generator.controller.GenController.editSave()', 'PUT', 1, 'admin', '研发部门', '/tool/gen', '127.0.0.1', '内网IP', '{\"businessName\":\"department_manage\",\"className\":\"Department\",\"columns\":[{\"capJavaField\":\"Id\",\"columnComment\":\"部门唯一ID（自增主键）\",\"columnId\":35,\"columnName\":\"id\",\"columnType\":\"int\",\"createBy\":\"admin\",\"createTime\":\"2025-05-01 22:58:07\",\"dictType\":\"\",\"edit\":false,\"htmlType\":\"input\",\"increment\":true,\"insert\":true,\"isIncrement\":\"1\",\"isInsert\":\"1\",\"isPk\":\"1\",\"isRequired\":\"0\",\"javaField\":\"id\",\"javaType\":\"Long\",\"list\":false,\"params\":{},\"pk\":true,\"query\":false,\"queryType\":\"EQ\",\"required\":false,\"sort\":1,\"superColumn\":false,\"tableId\":6,\"updateBy\":\"\",\"updateTime\":\"2025-05-03 16:55:45\",\"usableColumn\":false},{\"capJavaField\":\"EnterpriseId\",\"columnComment\":\"所属企业ID（外键指向enterprise.id）\",\"columnId\":36,\"columnName\":\"enterprise_id\",\"columnType\":\"int\",\"createBy\":\"admin\",\"createTime\":\"2025-05-01 22:58:07\",\"dictType\":\"\",\"edit\":true,\"htmlType\":\"input\",\"increment\":false,\"insert\":true,\"isEdit\":\"1\",\"isIncrement\":\"0\",\"isInsert\":\"1\",\"isList\":\"1\",\"isPk\":\"0\",\"isQuery\":\"1\",\"isRequired\":\"1\",\"javaField\":\"enterpriseId\",\"javaType\":\"Long\",\"list\":true,\"params\":{},\"pk\":false,\"query\":true,\"queryType\":\"EQ\",\"required\":true,\"sort\":2,\"superColumn\":false,\"tableId\":6,\"updateBy\":\"\",\"updateTime\":\"2025-05-03 16:55:45\",\"usableColumn\":false},{\"capJavaField\":\"Name\",\"columnComment\":\"部门名称（同一企业下不可重复）\",\"columnId\":37,\"columnName\":\"name\",\"columnType\":\"varchar(50)\",\"createBy\":\"admin\",\"createTime\":\"2025-05-01 22:58:07\",\"dictType\":\"\",\"edit\":true,\"htmlType\":\"input\",\"increment\":false,\"insert\":true,\"isEdit\":\"1\",\"isIncrement\":\"0\",\"isInsert\":\"1\",\"isList\":\"1\",\"isPk\":\"0\",\"isQuery\":\"1\",\"isRequired\":\"1\",\"javaField\":\"name\",\"javaType\":\"String\",\"list\":true,\"params\":{},\"pk\":false,\"query\":true,\"queryType\":\"LIKE\",\"required\":true,\"sort\":3,\"superColumn\":false,\"tableId\":6,\"updateBy\":\"\",\"updateTime\":\"2025-05-03 16:55:45\",\"usableColumn\":false},{\"capJavaField\":\"ManagerId\",\"columnComment\":\"部门负责人ID（占位，后续通过ALTER添加外键）\",\"columnId\":38,\"columnName\":\"manager_id\",\"columnType\":\"int\",\"createBy\":\"admin\",\"createTime\":\"2025-05-01 22:58:07\",\"dictType\":\"\",\"edit\":true,\"', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 17:06:30', 53),(170, '代码生成', 2, 'com.ruoyi.generator.controller.GenController.editSave()', 'PUT', 1, 'admin', '研发部门', '/tool/gen', '127.0.0.1', '内网IP', '{\"businessName\":\"department_manage\",\"className\":\"Department\",\"columns\":[{\"capJavaField\":\"Id\",\"columnComment\":\"部门唯一ID（自增主键）\",\"columnId\":35,\"columnName\":\"id\",\"columnType\":\"int\",\"createBy\":\"admin\",\"createTime\":\"2025-05-01 22:58:07\",\"dictType\":\"\",\"edit\":false,\"htmlType\":\"input\",\"increment\":true,\"insert\":false,\"isIncrement\":\"1\",\"isInsert\":\"0\",\"isPk\":\"1\",\"isRequired\":\"0\",\"javaField\":\"id\",\"javaType\":\"Long\",\"list\":false,\"params\":{},\"pk\":true,\"query\":false,\"queryType\":\"EQ\",\"required\":false,\"sort\":1,\"superColumn\":false,\"tableId\":6,\"updateBy\":\"\",\"updateTime\":\"2025-05-03 17:06:30\",\"usableColumn\":false},{\"capJavaField\":\"EnterpriseId\",\"columnComment\":\"所属企业ID（外键指向enterprise.id）\",\"columnId\":36,\"columnName\":\"enterprise_id\",\"columnType\":\"int\",\"createBy\":\"admin\",\"createTime\":\"2025-05-01 22:58:07\",\"dictType\":\"\",\"edit\":false,\"htmlType\":\"input\",\"increment\":false,\"insert\":false,\"isEdit\":\"0\",\"isIncrement\":\"0\",\"isInsert\":\"0\",\"isList\":\"0\",\"isPk\":\"0\",\"isQuery\":\"0\",\"isRequired\":\"1\",\"javaField\":\"enterpriseId\",\"javaType\":\"Long\",\"list\":false,\"params\":{},\"pk\":false,\"query\":false,\"queryType\":\"EQ\",\"required\":true,\"sort\":2,\"superColumn\":false,\"tableId\":6,\"updateBy\":\"\",\"updateTime\":\"2025-05-03 17:06:30\",\"usableColumn\":false},{\"capJavaField\":\"Name\",\"columnComment\":\"部门名称（同一企业下不可重复）\",\"columnId\":37,\"columnName\":\"name\",\"columnType\":\"varchar(50)\",\"createBy\":\"admin\",\"createTime\":\"2025-05-01 22:58:07\",\"dictType\":\"\",\"edit\":true,\"htmlType\":\"input\",\"increment\":false,\"insert\":true,\"isEdit\":\"1\",\"isIncrement\":\"0\",\"isInsert\":\"1\",\"isList\":\"1\",\"isPk\":\"0\",\"isQuery\":\"1\",\"isRequired\":\"1\",\"javaField\":\"name\",\"javaType\":\"String\",\"list\":true,\"params\":{},\"pk\":false,\"query\":true,\"queryType\":\"LIKE\",\"required\":true,\"sort\":3,\"superColumn\":false,\"tableId\":6,\"updateBy\":\"\",\"updateTime\":\"2025-05-03 17:06:30\",\"usableColumn\":false},{\"capJavaField\":\"ManagerId\",\"columnComment\":\"部门负责人ID（占位，后续通过ALTER添加外键）\",\"columnId\":38,\"columnName\":\"manager_id\",\"columnType\":\"int\",\"createBy\":\"admin\",\"createTime\":\"2025-05-01 22:58:07\",\"dictType\":\"\",\"edit\":t', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 17:06:54', 26),(171, '代码生成', 2, 'com.ruoyi.generator.controller.GenController.editSave()', 'PUT', 1, 'admin', '研发部门', '/tool/gen', '127.0.0.1', '内网IP', '{\"businessName\":\"department_manage\",\"className\":\"Department\",\"columns\":[{\"capJavaField\":\"Id\",\"columnComment\":\"部门唯一ID（自增主键）\",\"columnId\":35,\"columnName\":\"id\",\"columnType\":\"int\",\"createBy\":\"admin\",\"createTime\":\"2025-05-01 22:58:07\",\"dictType\":\"\",\"edit\":false,\"htmlType\":\"input\",\"increment\":true,\"insert\":false,\"isIncrement\":\"1\",\"isInsert\":\"0\",\"isPk\":\"1\",\"isRequired\":\"0\",\"javaField\":\"id\",\"javaType\":\"Long\",\"list\":false,\"params\":{},\"pk\":true,\"query\":false,\"queryType\":\"EQ\",\"required\":false,\"sort\":1,\"superColumn\":false,\"tableId\":6,\"updateBy\":\"\",\"updateTime\":\"2025-05-03 17:06:54\",\"usableColumn\":false},{\"capJavaField\":\"EnterpriseId\",\"columnComment\":\"所属企业ID（外键指向enterprise.id）\",\"columnId\":36,\"columnName\":\"enterprise_id\",\"columnType\":\"int\",\"createBy\":\"admin\",\"createTime\":\"2025-05-01 22:58:07\",\"dictType\":\"\",\"edit\":false,\"htmlType\":\"input\",\"increment\":false,\"insert\":false,\"isEdit\":\"0\",\"isIncrement\":\"0\",\"isInsert\":\"0\",\"isList\":\"0\",\"isPk\":\"0\",\"isQuery\":\"0\",\"isRequired\":\"1\",\"javaField\":\"enterpriseId\",\"javaType\":\"Long\",\"list\":false,\"params\":{},\"pk\":false,\"query\":false,\"queryType\":\"EQ\",\"required\":true,\"sort\":2,\"superColumn\":false,\"tableId\":6,\"updateBy\":\"\",\"updateTime\":\"2025-05-03 17:06:54\",\"usableColumn\":false},{\"capJavaField\":\"Name\",\"columnComment\":\"部门名称（同一企业下不可重复）\",\"columnId\":37,\"columnName\":\"name\",\"columnType\":\"varchar(50)\",\"createBy\":\"admin\",\"createTime\":\"2025-05-01 22:58:07\",\"dictType\":\"\",\"edit\":true,\"htmlType\":\"input\",\"increment\":false,\"insert\":true,\"isEdit\":\"1\",\"isIncrement\":\"0\",\"isInsert\":\"1\",\"isList\":\"1\",\"isPk\":\"0\",\"isQuery\":\"1\",\"isRequired\":\"1\",\"javaField\":\"name\",\"javaType\":\"String\",\"list\":true,\"params\":{},\"pk\":false,\"query\":true,\"queryType\":\"LIKE\",\"required\":true,\"sort\":3,\"superColumn\":false,\"tableId\":6,\"updateBy\":\"\",\"updateTime\":\"2025-05-03 17:06:54\",\"usableColumn\":false},{\"capJavaField\":\"ManagerId\",\"columnComment\":\"部门负责人ID（占位，后续通过ALTER添加外键）\",\"columnId\":38,\"columnName\":\"manager_id\",\"columnType\":\"int\",\"createBy\":\"admin\",\"createTime\":\"2025-05-01 22:58:07\",\"dictType\":\"\",\"edit\":t', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 17:07:34', 41),(172, '代码生成', 8, 'com.ruoyi.generator.controller.GenController.batchGenCode()', 'GET', 1, 'admin', '研发部门', '/tool/gen/batchGenCode', '127.0.0.1', '内网IP', '{\"tables\":\"department\"}', NULL, 0, NULL, '2025-05-03 17:07:37', 41),(173, '菜单管理', 2, 'com.ruoyi.web.controller.system.SysMenuController.edit()', 'PUT', 1, 'admin', '研发部门', '/system/menu', '127.0.0.1', '内网IP', '{\"children\":[],\"component\":\"company/manage/index\",\"createTime\":\"2025-05-03 16:53:16\",\"icon\":\"#\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuId\":2043,\"menuName\":\"公司信息\",\"menuType\":\"C\",\"orderNum\":1,\"params\":{},\"parentId\":2000,\"path\":\"manage\",\"perms\":\"company:manage:list\",\"routeName\":\"\",\"status\":\"0\",\"updateBy\":\"admin\",\"visible\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 17:16:13', 24),(174, '菜单管理', 2, 'com.ruoyi.web.controller.system.SysMenuController.edit()', 'PUT', 1, 'admin', '研发部门', '/system/menu', '127.0.0.1', '内网IP', '{\"children\":[],\"component\":\"system/menu/index\",\"createTime\":\"2025-05-01 22:57:17\",\"icon\":\"tree-table\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuId\":102,\"menuName\":\"菜单管理\",\"menuType\":\"M\",\"orderNum\":3,\"params\":{},\"parentId\":1,\"path\":\"menu\",\"perms\":\"system:menu:list\",\"query\":\"\",\"routeName\":\"\",\"status\":\"0\",\"updateBy\":\"admin\",\"visible\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 22:47:13', 38),(175, '菜单管理', 2, 'com.ruoyi.web.controller.system.SysMenuController.edit()', 'PUT', 1, 'admin', '研发部门', '/system/menu', '127.0.0.1', '内网IP', '{\"children\":[],\"component\":\"system/dept/index\",\"createTime\":\"2025-05-01 22:57:17\",\"icon\":\"tree\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuId\":103,\"menuName\":\"部门管理\",\"menuType\":\"M\",\"orderNum\":4,\"params\":{},\"parentId\":0,\"path\":\"dept\",\"perms\":\"system:dept:list\",\"query\":\"\",\"routeName\":\"\",\"status\":\"0\",\"updateBy\":\"admin\",\"visible\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 22:47:43', 16),(176, '菜单管理', 1, 'com.ruoyi.web.controller.system.SysMenuController.add()', 'POST', 1, 'admin', '研发部门', '/system/menu', '127.0.0.1', '内网IP', '{\"children\":[],\"icon\":\"date-range\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuName\":\"部门管理\",\"menuType\":\"M\",\"orderNum\":6,\"params\":{},\"parentId\":0,\"path\":\"department\",\"status\":\"0\",\"visible\":\"0\"}', '{\"msg\":\"新增菜单\'部门管理\'失败，菜单名称已存在\",\"code\":500}', 0, NULL, '2025-05-03 23:00:16', 6),(177, '菜单管理', 2, 'com.ruoyi.web.controller.system.SysMenuController.edit()', 'PUT', 1, 'admin', '研发部门', '/system/menu', '127.0.0.1', '内网IP', '{\"children\":[],\"component\":\"system/dept/index\",\"createTime\":\"2025-05-01 22:57:17\",\"icon\":\"tree\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuId\":103,\"menuName\":\"部门管理\",\"menuType\":\"C\",\"orderNum\":4,\"params\":{},\"parentId\":0,\"path\":\"dept\",\"perms\":\"system:dept:list\",\"query\":\"\",\"routeName\":\"\",\"status\":\"0\",\"updateBy\":\"admin\",\"visible\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-05-03 23:00:54', 15)
;
UNLOCK TABLES;
COMMIT;
BEGIN;
LOCK TABLES `ry-vue`.`sys_post` WRITE;
DELETE FROM `ry-vue`.`sys_post`;
INSERT INTO `ry-vue`.`sys_post` (`post_id`,`post_code`,`post_name`,`post_sort`,`status`,`create_by`,`create_time`,`update_by`,`update_time`,`remark`) VALUES (1, 'ceo', '董事长', 1, '0', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(2, 'se', '项目经理', 2, '0', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(3, 'hr', '人力资源', 3, '0', 'admin', '2025-05-01 22:57:17', '', NULL, ''),(4, 'user', '普通员工', 4, '0', 'admin', '2025-05-01 22:57:17', '', NULL, '')
;
UNLOCK TABLES;
COMMIT;
BEGIN;
LOCK TABLES `ry-vue`.`sys_role` WRITE;
DELETE FROM `ry-vue`.`sys_role`;
INSERT INTO `ry-vue`.`sys_role` (`role_id`,`role_name`,`role_key`,`role_sort`,`data_scope`,`menu_check_strictly`,`dept_check_strictly`,`status`,`del_flag`,`create_by`,`create_time`,`update_by`,`update_time`,`remark`) VALUES (1, '超级管理员', 'admin', 1, '1', 1, 1, '0', '0', 'admin', '2025-05-01 22:57:17', '', NULL, '超级管理员'),(2, '普通角色', 'common', 3, '2', 1, 1, '0', '0', 'admin', '2025-05-01 22:57:17', 'admin', '2025-05-03 17:02:24', '普通角色'),(100, 'company_admin', 'c_admin', 2, '1', 1, 1, '0', '0', 'admin', '2025-05-03 17:02:09', '', NULL, NULL)
;
UNLOCK TABLES;
COMMIT;
BEGIN;
LOCK TABLES `ry-vue`.`sys_role_dept` WRITE;
DELETE FROM `ry-vue`.`sys_role_dept`;
INSERT INTO `ry-vue`.`sys_role_dept` (`role_id`,`dept_id`) VALUES (2, 100),(2, 101),(2, 105)
;
UNLOCK TABLES;
COMMIT;
BEGIN;
LOCK TABLES `ry-vue`.`sys_role_menu` WRITE;
DELETE FROM `ry-vue`.`sys_role_menu`;
INSERT INTO `ry-vue`.`sys_role_menu` (`role_id`,`menu_id`) VALUES (2, 1),(2, 2),(2, 3),(2, 4),(2, 100),(2, 101),(2, 102),(2, 103),(2, 104),(2, 105),(2, 106),(2, 107),(2, 108),(2, 109),(2, 110),(2, 111),(2, 112),(2, 113),(2, 114),(2, 115),(2, 116),(2, 117),(2, 500),(2, 501),(2, 1000),(2, 1001),(2, 1002),(2, 1003),(2, 1004),(2, 1005),(2, 1006),(2, 1007),(2, 1008),(2, 1009),(2, 1010),(2, 1011),(2, 1012),(2, 1013),(2, 1014),(2, 1015),(2, 1016),(2, 1017),(2, 1018),(2, 1019),(2, 1020),(2, 1021),(2, 1022),(2, 1023),(2, 1024),(2, 1025),(2, 1026),(2, 1027),(2, 1028),(2, 1029),(2, 1030),(2, 1031),(2, 1032),(2, 1033),(2, 1034),(2, 1035),(2, 1036),(2, 1037),(2, 1038),(2, 1039),(2, 1040),(2, 1041),(2, 1042),(2, 1043),(2, 1044),(2, 1045),(2, 1046),(2, 1047),(2, 1048),(2, 1049),(2, 1050),(2, 1051),(2, 1052),(2, 1053),(2, 1054),(2, 1055),(2, 1056),(2, 1057),(2, 1058),(2, 1059),(2, 1060),(100, 1),(100, 2),(100, 3),(100, 4),(100, 100),(100, 101),(100, 102),(100, 103),(100, 104),(100, 105),(100, 106),(100, 107),(100, 108),(100, 109),(100, 110),(100, 111),(100, 112),(100, 113),(100, 114),(100, 115),(100, 116),(100, 117),(100, 500),(100, 501),(100, 1000),(100, 1001),(100, 1002),(100, 1003),(100, 1004),(100, 1005),(100, 1006),(100, 1007),(100, 1008),(100, 1009),(100, 1010),(100, 1011),(100, 1012),(100, 1013),(100, 1014),(100, 1015),(100, 1016),(100, 1017),(100, 1018),(100, 1019),(100, 1020),(100, 1021),(100, 1022),(100, 1023),(100, 1024),(100, 1025),(100, 1026),(100, 1027),(100, 1028),(100, 1029),(100, 1030),(100, 1031),(100, 1032),(100, 1033),(100, 1034),(100, 1035),(100, 1036),(100, 1037),(100, 1038),(100, 1039),(100, 1040),(100, 1041),(100, 1042),(100, 1043),(100, 1044),(100, 1045),(100, 1046),(100, 1047),(100, 1048),(100, 1049),(100, 1050),(100, 1051),(100, 1052),(100, 1053),(100, 1054),(100, 1055),(100, 1056),(100, 1057),(100, 1058),(100, 1059),(100, 1060),(100, 2000),(100, 2043),(100, 2044),(100, 2045),(100, 2046),(100, 2047),(100, 2048)
;
UNLOCK TABLES;
COMMIT;
BEGIN;
LOCK TABLES `ry-vue`.`sys_user` WRITE;
DELETE FROM `ry-vue`.`sys_user`;
INSERT INTO `ry-vue`.`sys_user` (`user_id`,`dept_id`,`user_name`,`nick_name`,`user_type`,`email`,`phonenumber`,`sex`,`avatar`,`password`,`status`,`del_flag`,`login_ip`,`login_date`,`create_by`,`create_time`,`update_by`,`update_time`,`remark`) VALUES (1, 103, 'admin', '若依', '00', 'ry@163.com', '15888888888', '1', '', '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', '0', '0', '127.0.0.1', '2025-05-03 22:40:18', 'admin', '2025-05-01 22:57:17', '', '2025-05-03 22:40:17', '管理员'),(2, 105, 'ry', '若依', '00', 'ry@qq.com', '15666666666', '1', '', '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', '0', '0', '127.0.0.1', '2025-05-01 22:57:17', 'admin', '2025-05-01 22:57:17', '', NULL, '测试员')
;
UNLOCK TABLES;
COMMIT;
BEGIN;
LOCK TABLES `ry-vue`.`sys_user_post` WRITE;
DELETE FROM `ry-vue`.`sys_user_post`;
INSERT INTO `ry-vue`.`sys_user_post` (`user_id`,`post_id`) VALUES (1, 1),(2, 2)
;
UNLOCK TABLES;
COMMIT;
BEGIN;
LOCK TABLES `ry-vue`.`sys_user_role` WRITE;
DELETE FROM `ry-vue`.`sys_user_role`;
INSERT INTO `ry-vue`.`sys_user_role` (`user_id`,`role_id`) VALUES (1, 1),(2, 2)
;
UNLOCK TABLES;
COMMIT;
BEGIN;
LOCK TABLES `ry-vue`.`third_party_person` WRITE;
DELETE FROM `ry-vue`.`third_party_person`;
UNLOCK TABLES;
COMMIT;
